1/* { dg-do link } */ 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_u16(0) != 16) 11 link_error(); 12 return 0; 13} 14