aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr94801.c
blob: 5382e5ee9600738840eda4f297e7b2f1f30a0e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/94801 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump-times "return 0;" 2 "optimized" } } */

int
foo (int a)
{
  return __builtin_clz (a) >> 5;
}

int
bar (int a)
{
  return __builtin_ctz (a) >> 5;
}