1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mbmi" } */
3 
foo(unsigned int x,unsigned int y)4 int foo (unsigned int x, unsigned int y)
5 {
6   if (__builtin_ia32_bextr_u32 (x, y))
7     return 1;
8 
9   return 0;
10 }
11 
12 /* { dg-final { scan-assembler-not "test" } } */
13