summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/440-dlmzb-strlen-1.c
blob: c69a7c91bcca07121470e5cb41c36fc059d9774a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test generation of dlmzb for strlen on 440.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mcpu=440" } */

/* { dg-final { scan-assembler "dlmzb\\. " } } */

typedef __SIZE_TYPE__ size_t;

size_t strlen(const char *);

size_t
strlen8(const long long *s)
{
  return strlen((const char *)s);
}