diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/i386/bt-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/i386/bt-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/i386/bt-1.c b/gcc-4.9/gcc/testsuite/gcc.target/i386/bt-1.c new file mode 100644 index 000000000..3727155d6 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/i386/bt-1.c @@ -0,0 +1,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\]" } } */ |