OSDN Git Service

2012-01-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-7.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
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 " > " "optimized" } } */
15 /* { dg-final { cleanup-tree-dump "optimized" } } */