Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power8 -mno-vsx" } */
3 /* { dg-skip-if "" { has_arch_ppc64 && ilp32 } } */
4 /* { dg-final { scan-assembler-not {\mb[l]? memcmp\M} } } */
5
6 /* Test that it still can do expand for memcmpsi instead of calling library
7 on P8 with vsx disabled. */
8
9 int foo (const char* s1, const char* s2)
10 {
11 return __builtin_memcmp (s1, s2, 20);
12 }