aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-17 22:04:05 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-17 22:04:05 +0000
commite68d8ec25296574109b586359d37318c725442ac (patch)
tree4c73ce35b8f63ca449c2d09775da88afedbe37d2 /test/MC
parent5ee20680c7ebc765950983633e19fafab5235245 (diff)
downloadexternal_llvm-e68d8ec25296574109b586359d37318c725442ac.zip
external_llvm-e68d8ec25296574109b586359d37318c725442ac.tar.gz
external_llvm-e68d8ec25296574109b586359d37318c725442ac.tar.bz2
It used to be that t_addrmode_s4 was used for both:
o A8.6.195 STR (register) -- Encoding T1 o A8.6.193 STR (immediate, Thumb) -- Encoding T1 It has been changed so that now they use different addressing modes and thus different MC representation (Operand Infos). Modify the disassembler to reflect the change, and add relevant tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Disassembler/ARM/thumb-tests.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/thumb-tests.txt b/test/MC/Disassembler/ARM/thumb-tests.txt
index 36f7438..26a6af8 100644
--- a/test/MC/Disassembler/ARM/thumb-tests.txt
+++ b/test/MC/Disassembler/ARM/thumb-tests.txt
@@ -27,6 +27,15 @@
# CHECK: ldmia r0!, {r1}
0x02 0xc8
+# CHECK: str r0, [r3]
+0x18 0x60
+
+# CHECK: str r0, [r3, #4]
+0x58 0x60
+
+# CHECK: str r2, [r5, r3]
+0xea 0x50
+
# CHECK: ldrb.w r8, #-24
0x1f 0xf8 0x18 0x80