gcc/testsuite/gcc.dg/tree-ssa/loopclosedphi.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fno-tree-ch -fno-unswitch-loops -w -fdump-tree-loopdone-details" } */ |
| 3 | |
| 4 | void |
| 5 | t6 (int qz, int wh) |
| 6 | { |
| 7 | int jl = wh; |
| 8 | |
| 9 | while (1.0 * qz / wh < 1) |
| 10 | { |
| 11 | qz = wh * (wh + 2); |
| 12 | |
| 13 | while (wh < 1) |
| 14 | jl = 0; |
| 15 | } |
| 16 | |
| 17 | while (qz < 1) |
| 18 | qz = jl * wh; |
| 19 | } |
| 20 | |
| 21 | /* { dg-final { scan-tree-dump-times "Replacing" 3 "loopdone"} } */ |