| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ |
| 3 |
/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ |
| 4 |
/* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ |
| 5 |
/* Ignore warning on some powerpc-ibm-aix configurations. */ |
| 6 |
/* { dg-prune-output "non-standard ABI extension" } */ |
| 7 |
|
| 8 |
/* Test if C_MAYBE_CONST are folded correctly when |
| 9 |
creating VEC_COND_EXPR. */ |
| 10 |
|
| 11 |
typedef int vec __attribute__((vector_size(16))); |
| 12 |
|
| 13 |
vec i,j; |
| 14 |
extern vec a, b, c; |
| 15 |
|
| 16 |
extern int p, q, z; |
| 17 |
extern vec foo (int); |
| 18 |
|
| 19 |
vec |
| 20 |
foo (int x) |
| 21 |
{ |
| 22 |
return foo (p ? q :z) > a; |
| 23 |
} |
| 24 |
|
| 25 |
vec |
| 26 |
bar (int x) |
| 27 |
{ |
| 28 |
return b > foo (p ? q :z); |
| 29 |
} |
| 30 |
|
| 31 |
|