| 1 |
/* { dg-require-effective-target int32plus } */ |
| 2 |
/* PR tree-optimization/112581 */ |
| 3 |
/* reassociation, used to combine 2 bb to together, |
| 4 |
that made an unitialized variable unconditional used |
| 5 |
which then at runtime would cause an infinite loop. */ |
| 6 |
int a = -1, b = 2501896061, c, d, e, f = 3, g; |
| 7 |
int main() { |
| 8 |
unsigned h; |
| 9 |
int i; |
| 10 |
d = 0; |
| 11 |
for (; d < 1; d++) { |
| 12 |
int j = ~-((6UL ^ a) / b); |
| 13 |
if (b) |
| 14 |
L: |
| 15 |
if (!f) |
| 16 |
continue; |
| 17 |
if (c) |
| 18 |
i = 1; |
| 19 |
if (j) { |
| 20 |
i = 0; |
| 21 |
while (e) |
| 22 |
; |
| 23 |
} |
| 24 |
g = -1 % b; |
| 25 |
h = ~(b || h); |
| 26 |
f = g || 0; |
| 27 |
a = a || 0; |
| 28 |
if (!a) |
| 29 |
h = 0; |
| 30 |
while (h > 4294967294) |
| 31 |
if (i) |
| 32 |
break; |
| 33 |
if (c) |
| 34 |
goto L; |
| 35 |
} |
| 36 |
return 0; |
| 37 |
} |