aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr59874-2.c
blob: 3b7679ff9f536850718f14c0196f2c87fc98eba5 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR target/59874 */
/* { dg-do compile } */
/* { dg-options "-O2 -mlzcnt -masm=att" } */
/* { dg-final { scan-assembler "lzcntw" } } */

unsigned int
foo (unsigned short x)
{
  return x ? __builtin_clzs (x) : 16U;
}