Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / powerpc / pr16286.c
blobafca7a91ef25647f17fa5a61c2342c51d38bf014
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
3 /* { dg-options "-maltivec" } */
5 /* PR 16286
6 Compilation of a simple Altivec test program fails if vector, pixel
7 and/or bool are #undefined when compiling with -maltivec. This may be
8 done for building C++ programs that use the STL <vector>. */
10 #include <altivec.h>
11 #undef vector
12 #undef pixel
13 #undef bool
15 void test(void)
17 __vector unsigned int a, b;
18 __vector __pixel v0;
19 __vector __bool v1;
21 a = vec_and(a, b);
22 vec_step (b);
25 /* { dg-bogus "(syntax|parse) error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */
26 /* { dg-bogus "(syntax|parse) error before \"pixel\"" "-maltivec" { target powerpc*-*-* } 0 } */
27 /* { dg-bogus "(syntax|parse) error before \"bool\"" "-maltivec" { target powerpc*-*-* } 0 } */