aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-9.c
blob: 4f88624ae19cd4da247b3bbcbf80f4315e9c004d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */ 
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */
int
foo (unsigned long a)
{
  int b = __builtin_clzl (a);
  int c = __builtin_clzl (a);
  if (b == c)
    return 1;
  return 0;
}
/* { dg-final { scan-tree-dump-times "return 0;" 0 "fre1"} } */
/* { dg-final { cleanup-tree-dump "fre1" } } */