gcc/testsuite/gcc.target/i386/pr95151-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -msse2 -mno-inline-all-stringops" } */ |
| 3 | |
| 4 | struct foo |
| 5 | { |
| 6 | char array[257]; |
| 7 | }; |
| 8 | |
| 9 | extern struct foo x; |
| 10 | |
| 11 | int |
| 12 | func (struct foo i) |
| 13 | { |
| 14 | return __builtin_memcmp (&x, &i, sizeof (x)) ? 1 : 2; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler "call\[\\t \]*_?memcmp" } } */ |
| 18 | /* { dg-final { scan-assembler-not "cmpsb" } } */ |