1 /* { dg-do compile } */
2 /* { dg-options "-O -maltivec -mno-vsx" } */
3 /* { dg-require-effective-target powerpc_altivec } */
5 typedef unsigned short V
__attribute__((vector_size(16)));
9 return __builtin_shuffle(x
, (V
){ 1,1,1,1, 1,1,1,1, });
14 return __builtin_shuffle(x
, (V
){ 2,3,2,3, 2,3,2,3, });
17 /* { dg-final { scan-assembler-not "vperm" } } */
18 /* { dg-final { scan-assembler "vsplth" } } */
19 /* { dg-final { scan-assembler "vspltw" } } */