summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/bmi-3.c
blob: ddc5e0f66e2abe642768b430f3598bac7539f565 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -mbmi " } */
/* { dg-final { scan-assembler "tzcntw\[^\\n]*(%|)ax" } } */

#include <x86intrin.h>

unsigned short
func_tzcnt16 (unsigned short X)
{
  return __tzcnt_u16(X);
}