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

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

index 24c85291c8c7d6cceecee703fa4110b06c7e2e78..de0f4f1318a5b277b763efb132d887844b9296ec 100644 (file)
@@ -2266,6 +2266,24 @@ _func:
 @ CHECK: strbt r1, [r8, #255]          @ encoding: [0x08,0xf8,0xff,0x1e]
 
 
+@------------------------------------------------------------------------------
+@ STRD
+@------------------------------------------------------------------------------
+        strd r3, r5, [r6, #24]
+        strd r3, r5, [r6, #24]!
+        strd r3, r5, [r6], #4
+        strd r3, r5, [r6], #-8
+        strd r3, r5, [r6]
+        strd r8, r1, [r3, #0]
+
+@ CHECK: strd  r3, r5, [r6, #24]       @ encoding: [0xc6,0xe9,0x06,0x35]
+@ CHECK: strd  r3, r5, [r6, #24]!      @ encoding: [0xe6,0xe9,0x06,0x35]
+@ CHECK: strd  r3, r5, [r6], #4        @ encoding: [0xe6,0xe8,0x01,0x35]
+@ CHECK: strd  r3, r5, [r6], #-8       @ encoding: [0x66,0xe8,0x02,0x35]
+@ CHECK: strd  r3, r5, [r6]            @ encoding: [0xc6,0xe9,0x00,0x35]
+@ CHECK: strd  r8, r1, [r3]            @ encoding: [0xc3,0xe9,0x00,0x81]
+
+
 @------------------------------------------------------------------------------
 @ STRH(immediate)
 @------------------------------------------------------------------------------