aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-5.c
blob: 88bd81e25964a30686593db16a1fb64df7cfcb63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

/* Testcase from PR15353.  */

int g(void);
int h(void);
int f(int *i, int *j)
{
  while (1)
    {
      if (*i > *j || *i == *j)
        break;
      return g();
    }
  return h();
}

/* { dg-final { scan-tree-dump ">=" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */