From 391ac65377f2ad5e48a796e75120959e22430605 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 30 Aug 2011 22:03:20 +0000 Subject: 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 --- test/MC/ARM/basic-thumb-instructions.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.1