[llvm-commits] [llvm] r138359 - /llvm/trunk/test/MC/ARM/basic-thumb-instructions.s
Jim Grosbach
grosbach at apple.com
Tue Aug 23 12:45:45 PDT 2011
Author: grosbach
Date: Tue Aug 23 14:45:45 2011
New Revision: 138359
URL: http://llvm.org/viewvc/llvm-project?rev=138359&view=rev
Log:
Thumb parsing and encoding for SUB.
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=138359&r1=138358&r2=138359&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb-instructions.s Tue Aug 23 14:45:45 2011
@@ -505,3 +505,31 @@
strh r6, [r2, r6]
@ CHECK: strh r6, [r2, r6] @ encoding: [0x96,0x53]
+
+
+ at ------------------------------------------------------------------------------
+@ SUB (immediate)
+ at ------------------------------------------------------------------------------
+ subs r1, r2, #3
+ subs r2, #3
+ subs r2, #8
+
+@ CHECK: subs r1, r2, #3 @ encoding: [0xd1,0x1e]
+@ CHECK: subs r2, #3 @ encoding: [0x03,0x3a]
+@ CHECK: subs r2, #8 @ encoding: [0x08,0x3a]
+
+
+ at ------------------------------------------------------------------------------
+@ FIXME: SUB (SP minus immediate)
+ at ------------------------------------------------------------------------------
+ at ------------------------------------------------------------------------------
+@ FIXME: SUB (SP minus register)
+ at ------------------------------------------------------------------------------
+
+
+ at ------------------------------------------------------------------------------
+@ SUB (register)
+ at ------------------------------------------------------------------------------
+ subs r1, r2, r3
+
+@ CHECK: subs r1, r2, r3 @ encoding: [0xd1,0x1a]
More information about the llvm-commits
mailing list