OSDN Git Service

* gcc.dg/weak/typeof-2.c: Needs aliases as well as weak.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / altivec-14.c
1 /* { dg-do compile { target powerpc-*-* } } */
2 /* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
3 /* { dg-options "-maltivec" } */
4
5 #include <altivec.h>
6
7 vector bool long vbl;           /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
8 vector signed long vsl;         /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
9 vector unsigned long vul;       /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
10 vector bool long *pvbl;         /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
11 vector signed long *pvsl;       /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
12 vector unsigned long *pvul;     /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
13
14 void fvbl (vector bool long v) { }      /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
15 void fvsl (vector signed long v) { }    /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
16 void fvul (vector unsigned long v) { }  /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
17
18 int main ()
19 {
20   vector bool long lvbl;        /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
21   vector signed long lvsl;      /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
22   vector unsigned long lvul;    /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
23   return 0;
24 }