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