summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr65871-1.c
blob: d76181e27a0b31735050b5d6326da3cc947f9ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -mbmi" } */

int foo (unsigned int x, unsigned int y)
{
  if (__builtin_ia32_bextr_u32 (x, y))
    return 1;

  return 0;
}

/* { dg-final { scan-assembler-not "test" } } */