| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fno-expensive-optimizations -fno-tree-dse -fgimple" } */ |
| 3 |
|
| 4 |
/* We're testing the CSELIM pass but we need VRP to compute the range |
| 5 |
for b_4 to make the array1[] accesses out-of-bound. */ |
| 6 |
|
| 7 |
int array1[1]; |
| 8 |
int __GIMPLE (ssa,startwith("vrp"),guessed_local(1073741824)) |
| 9 |
f1 (int a, short unsigned int b1, int c) |
| 10 |
{ |
| 11 |
int b; |
| 12 |
|
| 13 |
__BB(2,guessed_local(1073741824)): |
| 14 |
b_3 = (int) b1_2(D); |
| 15 |
b_4 = b_3 + 1; |
| 16 |
if (a_5(D) != 0) |
| 17 |
goto __BB3(guessed(67108864)); |
| 18 |
else |
| 19 |
goto __BB4(guessed(67108864)); |
| 20 |
|
| 21 |
__BB(3,guessed_local(536870912)): |
| 22 |
array1[b_4] = c_7(D); |
| 23 |
array1[b_4] = c_7(D); |
| 24 |
goto __BB5(precise(134217728)); |
| 25 |
|
| 26 |
__BB(4,guessed_local(536870912)): |
| 27 |
array1[b_4] = c_7(D); |
| 28 |
goto __BB5(precise(134217728)); |
| 29 |
|
| 30 |
__BB(5,guessed_local(1073741824)): |
| 31 |
return; |
| 32 |
} |