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

int foo (int a)
{
  int c = 0;
  if (a != 0)
    {
      __builtin_popcount (a);
      c = 2;
    }
  return c;
}

/* { dg-final { scan-tree-dump-times "if " 1 "optimized" } } */