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

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

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