summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/bt-1.c
blob: 3727155d68f1389f1cb33071323d1bdfd8d8f73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/36473 */
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=core2" } */

extern void foo (void);

int test(int x, int n)
{
  if (x & ( 0x01 << n ))
    foo ();

  return 0;
}

/* { dg-final { scan-assembler "btl\[ \t\]" } } */