gcc/testsuite/gcc.target/powerpc/altivec-perm-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -maltivec -mno-vsx" } */ |
| 3 | /* { dg-require-effective-target powerpc_altivec } */ |
| 4 | |
| 5 | typedef unsigned int V __attribute__((vector_size(16))); |
| 6 | |
| 7 | V f4(V x) |
| 8 | { |
| 9 | return __builtin_shuffle(x, (V){ 1,1,1,1, }); |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler-not "vperm" } } */ |
| 13 | /* { dg-final { scan-assembler "vspltw" } } */ |