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. */ 7 extern void link_error(void); main()8int main() 9 { 10 if (__tzcnt_u32(0) != 32) 11 link_error(); 12 return 0; 13 } 14