1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power6" } } */
4 /* { dg-options "-mcpu=power6 -maltivec" } */
9 return (vector
unsigned char) {
10 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
11 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80
18 return (vector
unsigned short) {
19 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000
26 return (vector
unsigned int) {
27 0x80000000u
, 0x80000000u
, 0x80000000u
, 0x80000000u
,
31 /* { dg-final { scan-assembler-times "vspltisw" 3 } } */
32 /* { dg-final { scan-assembler-times "vslb" 1 } } */
33 /* { dg-final { scan-assembler-times "vslh" 1 } } */
34 /* { dg-final { scan-assembler-times "vslw" 1 } } */