aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr99142.c
blob: 1781a89de32a73bdfdeae9e6898c230932442798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump-not " >= 0\\)" "optimized" } } */
int f(int a, int *b, int *d)
{
  int c = __builtin_clz(a);

  *b = c;

  if (c != 0)
    *d = c;

  return c;
}