PR rtl-optimization/85342
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr85342.c
blob941e9d45146615ffdd3c93c4277132b67dd3e206
1 /* PR rtl-optimization/85342 */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-options "-O2 -mavx512vl" } */
5 typedef unsigned char U __attribute__((vector_size (64)));
6 typedef unsigned int V __attribute__((vector_size (64)));
7 typedef unsigned __int128 W __attribute__((vector_size (64)));
8 int i;
9 V g, h, z, k, l, m;
10 U j;
13 bar (W o, W p)
15 U q;
16 o |= (W){q[0]} >= o;
17 o += 1 < o;
18 j |= (U){} == j;
19 return i + (W)q + (W)g + (W)h + (W)z + o + (W)j + (W)k + (W)l + (W)m + p;
23 foo (U u)
25 U q;
26 W r = bar ((W)(U){0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ~0}, (W)q);
27 u += (U)bar ((W){~0}, r);
28 return (W)u;