2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr71854.c
blob6dc2c53a8bc957c8a5e00e0f1230364d71408a0b
1 /* PR tree-optimization/71854 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-O3 -ftree-loop-if-convert" } */
5 char a, f = 1;
6 int b, c, e[8];
7 short d;
9 short
10 foo (short x)
12 return x >= 2 || x >> c ? x : x << c;
15 int
16 main ()
18 while (f)
19 for (d = 0; d <= 7; d++)
21 f = 7 >> b ? a : a << b;
22 e[d] = foo (f);
24 return 0;