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} } } */
6 /* Test that it still can do expand for memcmpsi instead of calling library
7 on P8 with vsx disabled. */
9 int foo (const char* s1
, const char* s2
)
11 return __builtin_memcmp (s1
, s2
, 20);