aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/lzcnt-3.c
blob: 1477951174aa3c16830dff4adeca8d5d0c2ffc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O0 -mlzcnt " } */
/* { dg-final { scan-assembler "lzcntl\[^\\n]*(%|)eax" } } */

#include <x86intrin.h>

unsigned int
func_lzcnt32 (unsigned int X)
{
  return __lzcnt32(X);
}