Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr67071-1.c
blobc50b4e55f7b88348e72dcc0db0ae61989ee31350
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" } */
6 vector unsigned char
7 foo_char (void)
9 return (vector unsigned char) {
10 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
11 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80
15 vector unsigned short
16 foo_short (void)
18 return (vector unsigned short) {
19 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000
23 vector unsigned int
24 foo_int (void)
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 } } */