aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-08-30 22:03:20 +0000
committerOwen Anderson <resistor@mac.com>2011-08-30 22:03:20 +0000
commit391ac65377f2ad5e48a796e75120959e22430605 (patch)
treef9b443ddfe80f7625b508ba02864d89a88b0bdf8 /test
parent10096dbdef22a10a6a4444437c935ab428545525 (diff)
downloadexternal_llvm-391ac65377f2ad5e48a796e75120959e22430605.zip
external_llvm-391ac65377f2ad5e48a796e75120959e22430605.tar.gz
external_llvm-391ac65377f2ad5e48a796e75120959e22430605.tar.bz2
Fix encoding of Thumb1 B instructions with immediate offsets, which is necessary for round-tripping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/basic-thumb-instructions.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s
index d44ffeb..0e9eebd 100644
--- a/test/MC/ARM/basic-thumb-instructions.s
+++ b/test/MC/ARM/basic-thumb-instructions.s
@@ -105,12 +105,15 @@ _func:
@------------------------------------------------------------------------------
b _baz
beq _bar
+ b #1838
+ b #-420
@ CHECK: b _baz @ encoding: [A,0xe0'A']
@ fixup A - offset: 0, value: _baz, kind: fixup_arm_thumb_br
@ CHECK: beq _bar @ encoding: [A,0xd0]
@ fixup A - offset: 0, value: _bar, kind: fixup_arm_thumb_bcc
-
+@ CHECK: b #1838 @ encoding: [0x97,0xe3]
+@ CHECK: b #-420 @ encoding: [0x2e,0xe7]
@------------------------------------------------------------------------------
@ BICS