gcc/testsuite/gcc.target/i386/pr107546.c
raw| 1 | /* PR target/107546 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -msse2 -mno-xop -mno-avx512f" } */ |
| 4 | /* { dg-final { scan-assembler-not "pcmpeqb\t" } } */ |
| 5 | /* { dg-final { scan-assembler-times "pcmpgtb\t" 2 } } */ |
| 6 | |
| 7 | typedef signed char V __attribute__((vector_size(16))); |
| 8 | |
| 9 | V |
| 10 | foo (V x) |
| 11 | { |
| 12 | return x < 48; |
| 13 | } |
| 14 | |
| 15 | V |
| 16 | bar (V x) |
| 17 | { |
| 18 | return x >= (V) { 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57 }; |
| 19 | } |