re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-5.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
3
4 /* Testcase from PR15353. */
5
6 int g(void);
7 int h(void);
8 int f(int *i, int *j)
9 {
10 while (1)
11 {
12 if (*i > *j || *i == *j)
13 break;
14 return g();
15 }
16 return h();
17 }
18
19 /* { dg-final { scan-tree-dump ">=" "optimized" } } */
20 /* { dg-final { cleanup-tree-dump "optimized" } } */