blob: 803dd0a4282e9951722298930d28001d64f2c6fc [file] [log] [blame]
/* { dg-do link { target { ! ia32 } } } */
/* { dg-options "-O2 -mbmi" } */
#include <x86intrin.h>
/* Test that a constant operand 0 to tzcnt gets folded. */
extern void link_error(void);
int main()
{
if (__tzcnt_u64(0) != 64)
link_error();
return 0;
}