RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr53410-2.c
blob06aa7fe1ca50bdc9ea67300fa98c1ebeb9806c0d
1 /* PR tree-optimization/53410 */
3 typedef int V __attribute__((vector_size (4 * sizeof (int))));
4 typedef unsigned int W __attribute__((vector_size (4 * sizeof (int))));
6 void
7 f1 (V *p)
9 *p = (*p & ((V) { 1, 1, 1, 1 })) ^ ((V) { 1, 1, 1, 1});
12 void
13 f2 (V *p)
15 *p = (*p ^ ((V) { 1, 1, 1, 1 })) & ((V) { 1, 1, 1, 1});
18 void
19 f3 (V *p)
21 *p = (~*p) & ((V) { 1, 1, 1, 1 });
24 void
25 f4 (V *p, V *q)
27 *p = (*p ^ *q) == *q;
30 void
31 f5 (V *p, V *q)
33 *p = (*p ^ *q) == *p;
36 void
37 f6 (V *p, V *q, V *r)
39 *p = (*p & *r) == (*q & *r);
42 void
43 f7 (V *p, V *q, V *r)
45 *p = (*p & *r) == (*r & *q);
48 void
49 f8 (V *p, V *q, V *r)
51 *p = (*r & *p) == (*q & *r);
54 void
55 f9 (V *p, V *q, V *r)
57 *p = (*r & *p) == (*r & *q);
60 void
61 f10 (W *p, W *q)
63 *p = *p < (((const W) { 1U, 1U, 1U, 1U }) << *q);