1/* { dg-do link { target { ! { ia32 } } } } */
2/* { dg-options "-O2 -mbmi" } */
3
4#include <x86intrin.h>
5
6/* Test that a constant operand 0 to tzcnt gets folded.  */
7extern void link_error(void);
8int main()
9{
10  if (__tzcnt_u64(0) != 64)
11    link_error();
12  return 0;
13}
14