Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-compare-2.c
blob5ebe9e3ca56c23ba31df43754549b92177d1818d
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" } */
8 /* Test if C_MAYBE_CONST are folded correctly when
9 creating VEC_COND_EXPR. */
11 typedef int vec __attribute__((vector_size(16)));
13 vec i,j;
14 extern vec a, b, c;
16 extern int p, q, z;
17 extern vec foo (int);
19 vec
20 foo (int x)
22 return foo (p ? q :z) > a;
25 vec
26 bar (int x)
28 return b > foo (p ? q :z);