gcc/testsuite/gcc.dg/graphite/pr83385.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O1 -floop-nest-optimize" } */ |
| 3 | |
| 4 | int xc, n1 = 0; |
| 5 | int bx[2]; |
| 6 | |
| 7 | int |
| 8 | main (void) |
| 9 | { |
| 10 | int aj = 1; |
| 11 | int cs; |
| 12 | |
| 13 | for (cs = aj; cs >= 0; --cs) |
| 14 | { |
| 15 | int sq; |
| 16 | |
| 17 | for (sq = 0; sq < 2; ++sq) |
| 18 | { |
| 19 | if (aj != 0) |
| 20 | --n1; |
| 21 | |
| 22 | for (xc = 0; xc < 2; ++xc) |
| 23 | bx[xc] = 0; |
| 24 | } |
| 25 | |
| 26 | --aj; |
| 27 | } |
| 28 | |
| 29 | if (n1 != -2) |
| 30 | __builtin_abort (); |
| 31 | return 0; |
| 32 | } |