Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/block-cmp-4.c

raw
1 /* { dg-do compile { target be } } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power7" } */
3 /* { dg-skip-if "" { has_arch_ppc64 && ilp32 } } */
4 /* { dg-final { scan-assembler-not {\mb[l]? memcmp\M} } } */
5
6 /* Test that it does expand for memcmpsi instead of calling library on
7 P7 BE when length is less than 32 bytes. */
8
9 int foo (const char* s1, const char* s2)
10 {
11 return __builtin_memcmp (s1, s2, 31);
12 }