gcc/testsuite/gcc.target/i386/pr110762.c
raw| 1 | /* PR target/110762 */ |
| 2 | /* { dg-do compile { target { ! ia32 } } } */ |
| 3 | /* { dg-options "-O2 -msse2 -dp" } */ |
| 4 | |
| 5 | typedef float v2sf __attribute__((vector_size(8))); |
| 6 | typedef float v4sf __attribute__((vector_size(16))); |
| 7 | |
| 8 | v2sf test(v4sf x, v4sf y) |
| 9 | { |
| 10 | v2sf x2, y2; |
| 11 | |
| 12 | x2 = __builtin_shufflevector (x, x, 0, 1); |
| 13 | y2 = __builtin_shufflevector (y, y, 0, 1); |
| 14 | |
| 15 | return x2 + y2; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-times "\\*vec_concatv4sf_0" 2 } } */ |