aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/lzcnt-5.c
blob: a4b9aafcd3d4bcfd32ed3aeced2e7c5d9d0086dc (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mlzcnt" } */
/* { dg-final { scan-assembler "lzcntq\[^\\n]*(%|)rax" } } */

#include <x86intrin.h>

unsigned int
func_lzcnt64 (unsigned long long X)
{
  return __lzcnt64(X);
}