aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-11-30 07:44:32 +0000
committerBill Wendling <isanbard@gmail.com>2010-11-30 07:44:32 +0000
commitef4a68badbde372faac9ca47efb9001def57a43d (patch)
tree2365abf528a38f22d1d78168fd89899a6034ae6a /test
parent3f8e61789100ee411d0bfe00fb90df60eaed65f5 (diff)
downloadexternal_llvm-ef4a68badbde372faac9ca47efb9001def57a43d.zip
external_llvm-ef4a68badbde372faac9ca47efb9001def57a43d.tar.gz
external_llvm-ef4a68badbde372faac9ca47efb9001def57a43d.tar.bz2
Add parsing for the Thumb t_addrmode_s4 addressing mode. This can almost
certainly be made more generic. But it does allow us to parse something like: ldr r3, [r2, r4] correctly in Thumb mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/thumb.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb.s b/test/MC/ARM/thumb.s
index 2db97c3..3d58521 100644
--- a/test/MC/ARM/thumb.s
+++ b/test/MC/ARM/thumb.s
@@ -32,3 +32,6 @@
@ CHECK: uxth r3, r6 @ encoding: [0xb3,0xb2]
uxtb r3, r6
uxth r3, r6
+
+@ CHECK: ldr r3, [r1, r2] @ encoding: [0x8b,0x58]
+ ldr r3, [r1, r2]