aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-31.c
blob: e312cdbdf52c9bc7ea6dca2dbc4fc199f0552bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/94898 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized-raw" } */


_Bool f(int x, int y)
{
    if (x >= y)
        return x - y;
    return 0;
}

/* { dg-final { scan-tree-dump-not "gimple_cond " "optimized" } } */
/* { dg-final { scan-tree-dump-times "gt_expr," 1 "optimized"  } } */
/* { dg-final { scan-tree-dump-not "ne_expr," "optimized"  } } */