summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/bmi-4.c
blob: e0a11616232fbd2bc827a88e337de5cc0b148728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do link } */
/* { 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_u32(0) != 32)
    link_error();
  return 0;
}