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);
       8  int main()
       9  {
      10    if (__tzcnt_u16(0) != 16)
      11      link_error();
      12    return 0;
      13  }