llvm/test/MC/Disassembler/ARM/marked-up-thumb.txt
Jim Grosbach 8ba1474181 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
2012-10-30 01:04:51 +00:00

8 lines
241 B
Plaintext

# RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -mdis < %s | FileCheck %s
# CHECK: ldr <reg:r4>, <mem:[pc, <imm:#32>]>
0x08 0x4c
# CHECK: push {<reg:r1>, <reg:r2>, <reg:r7>}
0x86 0xb4
# CHECK: sub <reg:sp>, <imm:#132>
0xa1 0xb0