OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vector-compare-2.c
1 /* { dg-do compile } */   
2 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
3 /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
4
5 /* Test if C_MAYBE_CONST are folded correctly when 
6    creating VEC_COND_EXPR.  */
7
8 typedef int vec __attribute__((vector_size(16)));
9
10 vec i,j;
11 extern vec a, b, c;
12
13 extern int p, q, z;
14 extern vec foo (int);
15
16 vec 
17 foo (int x)
18 {
19   return  foo (p ? q :z) > a;
20 }
21
22 vec 
23 bar (int x)
24 {
25   return  b > foo (p ? q :z);
26 }
27
28