gcc/testsuite/gcc.target/i386/avx10_2-pr124294.c
raw| 1 | /* PR target/124294 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -mavx10.2 -masm=intel" } */ |
| 4 | /* { dg-require-effective-target masm_intel } */ |
| 5 | /* { dg-final { scan-assembler "\tvmovw\txmm0, xmm1" } } */ |
| 6 | |
| 7 | typedef unsigned char V __attribute__((vector_size (16))); |
| 8 | |
| 9 | V |
| 10 | foo (V x, V y) |
| 11 | { |
| 12 | (void) x; |
| 13 | return __builtin_shuffle (y, (V) {}, (V) { 0, 1, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }); |
| 14 | } |