aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 11f81f8..a976c7f 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -758,6 +758,20 @@ _func:
@------------------------------------------------------------------------------
+@ LDRHT
+@------------------------------------------------------------------------------
+ ldrht r1, [r2]
+ ldrht r1, [r8, #0]
+ ldrht r1, [r8, #3]
+ ldrht r1, [r8, #255]
+
+@ CHECK: ldrht r1, [r2] @ encoding: [0x32,0xf8,0x00,0x1e]
+@ CHECK: ldrht r1, [r8] @ encoding: [0x38,0xf8,0x00,0x1e]
+@ CHECK: ldrht r1, [r8, #3] @ encoding: [0x38,0xf8,0x03,0x1e]
+@ CHECK: ldrht r1, [r8, #255] @ encoding: [0x38,0xf8,0xff,0x1e]
+
+
+@------------------------------------------------------------------------------
@ LDRSB(immediate)
@------------------------------------------------------------------------------
ldrsb r5, [r5, #-4]
@@ -2349,6 +2363,20 @@ _func:
@------------------------------------------------------------------------------
+@ STRHT
+@------------------------------------------------------------------------------
+ strht r1, [r2]
+ strht r1, [r8, #0]
+ strht r1, [r8, #3]
+ strht r1, [r8, #255]
+
+@ CHECK: strht r1, [r2] @ encoding: [0x22,0xf8,0x00,0x1e]
+@ CHECK: strht r1, [r8] @ encoding: [0x28,0xf8,0x00,0x1e]
+@ CHECK: strht r1, [r8, #3] @ encoding: [0x28,0xf8,0x03,0x1e]
+@ CHECK: strht r1, [r8, #255] @ encoding: [0x28,0xf8,0xff,0x1e]
+
+
+@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------
sub.w r5, r2, r12, rrx