1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-options "-O3 -mdejagnu-cpu=power8 -mvsx" } */
4 /* { dg-require-effective-target powerpc_vsx } */
5 /* { dg-final { scan-assembler "vbpermq" } } */
6 /* { dg-final { scan-assembler "mfvsrd" } } */
7 /* { dg-final { scan-assembler-not "stfd" } } */
8 /* { dg-final { scan-assembler-not "stxvd2x" } } */
18 long foos (vector
signed char a
, vector
signed char b
)
20 return vec_extract (vec_vbpermq (a
, b
), OFFSET
);
23 long foou (vector
unsigned char a
, vector
unsigned char b
)
25 return vec_extract (vec_vbpermq (a
, b
), OFFSET
);