1/* { dg-do compile } */
2/* { dg-options "-O2 -mtune=core2" } */
3
4void foo (void);
5
6int test (long x, long n)
7{
8  n &= 0x3f;
9
10  if (x & ((long)0x01 << n))
11    foo ();
12
13  return 0;
14}
15
16/* { dg-final { scan-assembler-not "and\[lq\]\[ \t\]" } } */
17