summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr71016.c
blob: d5a89ebd39358910c64cd4380a10ab511fe65ba5 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR tree-optimization/71016 */
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O2 -mlzcnt" } */
/* { dg-final { scan-assembler-not "cltq" } } */

long int
foo (long int i)
{
  return i == 0 ? 17 : __builtin_clzl (i);
}