gcc/testsuite/gcc.dg/graphite/pr80906.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -floop-nest-optimize -fdump-tree-graphite" } */ |
| 3 | |
| 4 | int qc; |
| 5 | |
| 6 | int |
| 7 | ec (int lh[][2]) |
| 8 | { |
| 9 | const int jv = 3; |
| 10 | int zf, hp, c5 = 0, m3 = 1; |
| 11 | |
| 12 | for (zf = 0; zf < jv; ++zf) |
| 13 | for (hp = 0; hp < jv; ++hp) |
| 14 | { |
| 15 | short int bm = 0; |
| 16 | |
| 17 | for (qc = 0; qc < jv; ++qc) |
| 18 | --bm; |
| 19 | if (bm != 0) |
| 20 | --c5; |
| 21 | lh[hp][0] = 0; |
| 22 | m3 *= jv; |
| 23 | } |
| 24 | |
| 25 | return c5 + m3; |
| 26 | } |
| 27 | |
| 28 | /* { dg-final { scan-tree-dump "isl AST to Gimple succeeded" "graphite" } } */ |