gcc/testsuite/gcc.target/powerpc/block-cmp-9.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | /* { dg-final { scan-assembler-not {\ml[hb]z\M} } } */ |
| 4 | |
| 5 | /* Test if by-piece overlap compare is enabled and following case is |
| 6 | implemented by two overlap word loads and compares. */ |
| 7 | |
| 8 | int foo (const char* s1, const char* s2) |
| 9 | { |
| 10 | return __builtin_memcmp (s1, s2, 7) == 0; |
| 11 | } |