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

extern void foo (void);

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

  return 0;
}

/* { dg-final { scan-assembler "btl\[ \t\]" { target { ! lp64 } } } } */
/* { dg-final { scan-assembler "btq\[ \t\]" { target lp64 } } } */