Make UNSPEC/UNSPECV constants use the enum; Fix 48192; Add test case for 48053
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr48192.c
blob5159260857cb59d18ef06b5bcd1e2c770057ab1a
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O3 -mcpu=power7 -std=gnu89" } */
6 /* Make sure that the conditional macros vector, bool, and pixel are not
7 considered as being defined. */
9 #ifdef bool
10 #error "bool is considered defined"
11 #endif
13 #ifdef vector
14 #error "vector is considered defined"
15 #endif
17 #ifdef pixel
18 #error "pixel is condsidered defined"
19 #endif
21 #if defined(bool)
22 #error "bool is considered defined"
23 #endif
25 #if defined(vector)
26 #error "vector is considered defined"
27 #endif
29 #if defined(pixel)
30 #error "pixel is condsidered defined"
31 #endif
33 #ifndef bool
34 #else
35 #error "bool is considered defined"
36 #endif
38 #ifndef vector
39 #else
40 #error "vector is considered defined"
41 #endif
43 #ifndef pixel
44 #else
45 #error "pixel is condsidered defined"
46 #endif
48 #define bool long double
49 bool pixel = 0;