gcc/testsuite/gcc.target/i386/pr68483-2.c
raw| 1 | /* PR target/68483 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -msse2 -mno-sse3" } */ |
| 4 | |
| 5 | typedef int V __attribute__((vector_size (16))); |
| 6 | |
| 7 | void |
| 8 | foo (V *a, V *b) |
| 9 | { |
| 10 | V c = { 0, 0, 0, 0 }; |
| 11 | V d = { 1, 2, 3, 4 }; |
| 12 | *a = __builtin_shuffle (*b, c, d); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler "psrldq\[^\n\r]*(4,|, 4)" } } */ |