PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr78559.c
blob8d7b8e3004b5c6fdb160124d21ab1f2dd19b22ab
1 /* PR rtl-optimization/78559 */
3 int g = 20;
4 int d = 0;
6 short
7 fn2 (int p1, int p2)
9 return p2 >= 2 || 5 >> p2 ? p1 : p1 << p2;
12 int
13 main ()
15 int result = 0;
16 lbl_2582:
17 if (g)
19 for (int c = -3; c; c++)
20 result = fn2 (1, g);
22 else
24 for (int i = 0; i < 2; i += 2)
25 if (d)
26 goto lbl_2582;
28 if (result != 1)
29 __builtin_abort ();
30 return 0;