2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-7.c
blob7eab7fd463636f7bd3adf7e63a5946694de66439
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ifcombine-details-blocks" } */
4 int test1 (int i, int j)
6 if (i >= j)
7 if (i != j)
8 return 0;
9 return -1;
12 /* The above should be optimized to a i > j test by ifcombine. */
14 /* { dg-final { scan-tree-dump " > " "ifcombine" } } */
15 /* { dg-final { scan-tree-dump-not "Invalid sum" "ifcombine" } } */