gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-7.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-ifcombine-details-blocks" } */ |
| 3 | |
| 4 | int test1 (int i, int j) |
| 5 | { |
| 6 | if (i >= j) |
| 7 | if (i != j) |
| 8 | return 0; |
| 9 | return -1; |
| 10 | } |
| 11 | |
| 12 | /* The above should be optimized to a i > j test by ifcombine. */ |
| 13 | |
| 14 | /* { dg-final { scan-tree-dump " > " "ifcombine" } } */ |
| 15 | /* { dg-final { scan-tree-dump-not "Invalid sum" "ifcombine" } } */ |