]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-7.c
617cb585a94869d758d278b82e3c5edb3e25146a
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-7.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ifcombine" } */
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 { cleanup-tree-dump "ifcombine" } } */