aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr96232-2.c
blob: 9f51820edfffa35e7bccec012e452b61c3a51880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/96232 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump " 38 - " "optimized" } } */
/* { dg-final { scan-tree-dump " \\+ 97;" "optimized" } } */
/* { dg-final { scan-tree-dump-not "PHI <" "optimized" } } */

int
foo (_Bool x)
{
  return x ? 37 : 38;
}

int
bar (_Bool x)
{
  return x ? 98 : 97;
}