aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/basic-thumb2-instructions.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-16 22:09:19 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-16 22:09:19 +0000
commit76ca6d9bcd093ced4277109e6819d49eead0c956 (patch)
tree06dd3f57b4399eefa24206a51f2ab18168148889 /test/MC/ARM/basic-thumb2-instructions.s
parent7291272ab21e8a899bf295fc544e4a00973a82b5 (diff)
downloadexternal_llvm-76ca6d9bcd093ced4277109e6819d49eead0c956.zip
external_llvm-76ca6d9bcd093ced4277109e6819d49eead0c956.tar.gz
external_llvm-76ca6d9bcd093ced4277109e6819d49eead0c956.tar.bz2
Thumb2 assembly parsing and encoding for STRB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/basic-thumb2-instructions.s')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index bcb8cae..003a1b9 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -2216,6 +2216,52 @@ _func:
@------------------------------------------------------------------------------
+@ STRB(immediate)
+@------------------------------------------------------------------------------
+ strb r5, [r5, #-4]
+ strb r5, [r6, #32]
+ strb r5, [r6, #33]
+ strb r5, [r6, #257]
+ strb.w lr, [r7, #257]
+ strb r5, [r8, #255]!
+ strb r2, [r5, #4]!
+ strb r1, [r4, #-4]!
+ strb lr, [r3], #255
+ strb r9, [r2], #4
+ strb r3, [sp], #-4
+
+@ CHECK: strb r5, [r5, #-4] @ encoding: [0x05,0xf8,0x04,0x5c]
+@ CHECK: strb.w r5, [r6, #32] @ encoding: [0x86,0xf8,0x20,0x50]
+@ CHECK: strb.w r5, [r6, #33] @ encoding: [0x86,0xf8,0x21,0x50]
+@ CHECK: strb.w r5, [r6, #257] @ encoding: [0x86,0xf8,0x01,0x51]
+@ CHECK: strb.w lr, [r7, #257] @ encoding: [0x87,0xf8,0x01,0xe1]
+@ CHECK: strb r5, [r8, #255]! @ encoding: [0x08,0xf8,0xff,0x5f]
+@ CHECK: strb r2, [r5, #4]! @ encoding: [0x05,0xf8,0x04,0x2f]
+@ CHECK: strb r1, [r4, #-4]! @ encoding: [0x04,0xf8,0x04,0x1d]
+@ CHECK: strb lr, [r3], #255 @ encoding: [0x03,0xf8,0xff,0xeb]
+@ CHECK: strb r9, [r2], #4 @ encoding: [0x02,0xf8,0x04,0x9b]
+@ CHECK: strb r3, [sp], #-4 @ encoding: [0x0d,0xf8,0x04,0x39]
+
+
+@------------------------------------------------------------------------------
+@ STRB(register)
+@------------------------------------------------------------------------------
+ strb r1, [r8, r1]
+ strb.w r4, [r5, r2]
+ strb r6, [r0, r2, lsl #3]
+ strb r8, [r8, r2, lsl #2]
+ strb r7, [sp, r2, lsl #1]
+ strb r7, [sp, r2, lsl #0]
+
+@ CHECK: strb.w r1, [r8, r1] @ encoding: [0x08,0xf8,0x01,0x10]
+@ CHECK: strb.w r4, [r5, r2] @ encoding: [0x05,0xf8,0x02,0x40]
+@ CHECK: strb.w r6, [r0, r2, lsl #3] @ encoding: [0x00,0xf8,0x32,0x60]
+@ CHECK: strb.w r8, [r8, r2, lsl #2] @ encoding: [0x08,0xf8,0x22,0x80]
+@ CHECK: strb.w r7, [sp, r2, lsl #1] @ encoding: [0x0d,0xf8,0x12,0x70]
+@ CHECK: strb.w r7, [sp, r2] @ encoding: [0x0d,0xf8,0x02,0x70]
+
+
+@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------
sub.w r5, r2, r12, rrx