Fix bootstrap failure for bare metal due to autoconf link tests
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-compare-3.c
blobd6b0dac7cb9f29487c7f88366f9d750b448c41dd
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef int v4i __attribute__((vector_size(4*sizeof(int))));
6 // fold should not turn (vec_other)(x<y) into (x<y)?vec_other(-1):vec_other(0).
8 void use (v4i const *z);
10 void
11 f (v4i *x, v4i *y)
13 v4i const zz = *x < *y;
14 use (&zz);
17 // Optimizations shouldn't introduce a boolean type in there
19 void
20 g (v4i *x, v4i const *y, v4i *z, v4i *t)
22 *z = *x < *y | *x == *y;
23 *t = *x < *y & *x > *y;