[llvm-commits] [llvm] r138349 - /llvm/trunk/test/MC/ARM/basic-thumb-instructions.s

Jim Grosbach grosbach at apple.com
Tue Aug 23 11:43:06 PDT 2011


Author: grosbach
Date: Tue Aug 23 13:43:06 2011
New Revision: 138349

URL: http://llvm.org/viewvc/llvm-project?rev=138349&view=rev
Log:
Thumb parsing and encoding for STRB.

Modified:
    llvm/trunk/test/MC/ARM/basic-thumb-instructions.s

Modified: llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/basic-thumb-instructions.s?rev=138349&r1=138348&r2=138349&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb-instructions.s Tue Aug 23 13:43:06 2011
@@ -465,3 +465,23 @@
         str r2, [r7, r3]
 
 @ CHECK: str	r2, [r7, r3]            @ encoding: [0xfa,0x50]
+
+
+ at ------------------------------------------------------------------------------
+@ STRB (immediate)
+ at ------------------------------------------------------------------------------
+        strb r4, [r3]
+        strb r5, [r6, #0]
+        strb r6, [r7, #31]
+
+@ CHECK: strb	r4, [r3]                @ encoding: [0x1c,0x70]
+@ CHECK: strb	r5, [r6]                @ encoding: [0x35,0x70]
+@ CHECK: strb	r6, [r7, #31]           @ encoding: [0xfe,0x77]
+
+
+ at ------------------------------------------------------------------------------
+@ STRB (register)
+ at ------------------------------------------------------------------------------
+        strb r6, [r4, r5]
+
+@ CHECK: strb	r6, [r4, r5]            @ encoding: [0x66,0x55]





More information about the llvm-commits mailing list