1  /* PR target/59874 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -mlzcnt -masm=att" } */
       4  /* { dg-final { scan-assembler "lzcntw" } } */
       5  
       6  unsigned int
       7  foo (unsigned short x)
       8  {
       9    return x ? __builtin_clzs (x) : 16U;
      10  }