gcc/testsuite/gcc.dg/autopar/pr86097.c
raw| 1 | /* { dg-options "-O2 -ftree-parallelize-loops=2 -fno-tree-dce -Wno-aggressive-loop-optimizations" } */ |
| 2 | int rp, vd; |
| 3 | |
| 4 | void |
| 5 | p5 (int cd) |
| 6 | { |
| 7 | while (cd != 0) |
| 8 | { |
| 9 | for (rp = 0; rp < 4; ++rp) |
| 10 | for (vd = 0; vd < 1; ++vd) |
| 11 | { |
| 12 | g0: |
| 13 | ; |
| 14 | } |
| 15 | |
| 16 | ++rp; |
| 17 | } |
| 18 | |
| 19 | while (rp < 2) |
| 20 | { |
| 21 | for (cd = 0; cd < 1; ++cd) |
| 22 | for (rp = 1; rp != 0; ++rp) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | ++rp; |
| 27 | } |
| 28 | |
| 29 | if (cd != 0) |
| 30 | goto g0; |
| 31 | } |