diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-10-30 01:04:51 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-10-30 01:04:51 +0000 |
commit | 8ba1474181fc3997cc8449d75065e1021c72d49b (patch) | |
tree | 078093fda4e5c3f603865a26a8ddf62492937689 /test/MC/ARM | |
parent | c09856b5357af621fcb84a7b2b6bfbf630c244ef (diff) |
ARM: Better disassembly for pc-relative LDR.
When the operand is a plain immediate rather than a label, print it
as [pc, #imm] like we do for the Thumb2 wide encoding variant.
rdar://12154503
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r-- | test/MC/ARM/basic-thumb-instructions.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s index 4ee34ce6b4..22e21da88e 100644 --- a/test/MC/ARM/basic-thumb-instructions.s +++ b/test/MC/ARM/basic-thumb-instructions.s @@ -259,8 +259,8 @@ _func: @ CHECK: ldr r1, _foo @ encoding: [A,0x49] @ fixup A - offset: 0, value: _foo, kind: fixup_arm_thumb_cp -@ CHECK: ldr r3, #604 @ encoding: [0x97,0x4b] -@ CHECK: ldr r3, #368 @ encoding: [0x5c,0x4b] +@ CHECK: ldr r3, [pc, #604] @ encoding: [0x97,0x4b] +@ CHECK: ldr r3, [pc, #368] @ encoding: [0x5c,0x4b] @------------------------------------------------------------------------------ @ LDR (register) |