c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / block-cmp-1.c
blobcd076cf1dce4aed073fe12d60895924f001bcff0
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);