Thumb2 assembly parsing and encoding for STMDB.
authorJim Grosbach <grosbach@apple.com>
Fri, 16 Sep 2011 20:58:38 +0000 (20:58 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 16 Sep 2011 20:58:38 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139940 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ARM/basic-thumb2-instructions.s

index d0fdb05295f1ef824a646a429b13baa1ca25f9e6..160ed80d3aee1016aae535deded06ef7bc3abd85 100644 (file)
@@ -2146,6 +2146,20 @@ _func:
 @ CHECK: stm.w r5!, {r3, r8}           @ encoding: [0xa5,0xe8,0x08,0x01]
 
 
+@------------------------------------------------------------------------------
+@ STMDB
+@------------------------------------------------------------------------------
+        stmdb r4, {r4, r5, r8, r9}
+        stmdb r4, {r5, r6}
+        stmdb r5!, {r3, r8}
+        stmea r5!, {r3, r8}
+
+@ CHECK: stmdb r4, {r4, r5, r8, r9}    @ encoding: [0x04,0xe9,0x30,0x03]
+@ CHECK: stmdb r4, {r5, r6}            @ encoding: [0x04,0xe9,0x60,0x00]
+@ CHECK: stmdb r5!, {r3, r8}           @ encoding: [0x25,0xe9,0x08,0x01]
+@ CHECK: stm.w r5!, {r3, r8}           @ encoding: [0xa5,0xe8,0x08,0x01]
+
+
 @------------------------------------------------------------------------------
 @ SUB (register)
 @------------------------------------------------------------------------------