[llvm-commits] [llvm] r138352 - /llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
Jim Grosbach
grosbach at apple.com
Tue Aug 23 11:56:20 PDT 2011
Author: grosbach
Date: Tue Aug 23 13:56:20 2011
New Revision: 138352
URL: http://llvm.org/viewvc/llvm-project?rev=138352&view=rev
Log:
Thumb parsing and encoding for STRH.
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=138352&r1=138351&r2=138352&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:56:20 2011
@@ -485,3 +485,23 @@
strb r6, [r4, r5]
@ CHECK: strb r6, [r4, r5] @ encoding: [0x66,0x55]
+
+
+ at ------------------------------------------------------------------------------
+@ STRH (immediate)
+ at ------------------------------------------------------------------------------
+ strh r3, [r3]
+ strh r4, [r6, #2]
+ strh r5, [r7, #62]
+
+@ CHECK: strh r3, [r3] @ encoding: [0x1b,0x80]
+@ CHECK: strh r4, [r6, #2] @ encoding: [0x74,0x80]
+@ CHECK: strh r5, [r7, #62] @ encoding: [0xfd,0x87]
+
+
+ at ------------------------------------------------------------------------------
+@ STRH (register)
+ at ------------------------------------------------------------------------------
+ strh r6, [r2, r6]
+
+@ CHECK: strh r6, [r2, r6] @ encoding: [0x96,0x53]
More information about the llvm-commits
mailing list