gcc/testsuite/gcc.dg/tree-ssa/phi-opt-21.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-phiopt4-details" } */ |
| 3 | |
| 4 | int f(unsigned s) |
| 5 | { |
| 6 | int i; |
| 7 | for (i = 0; i < s; ++i) |
| 8 | ; |
| 9 | |
| 10 | return i; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-tree-dump "converted to straightline code" "phiopt4" } } */ |
| 14 | /* Make sure we fold the detected MAX<s, 0>. */ |
| 15 | /* { dg-final { scan-tree-dump-not "MAX" "phiopt4" } } */ |