Thumb2 assembly parsing and encoding for LDRSHT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139392 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index dbd63f6..cddbb17 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -850,6 +850,20 @@
@------------------------------------------------------------------------------
+@ LDRSHT
+@------------------------------------------------------------------------------
+ ldrsht r1, [r2]
+ ldrsht r1, [r8, #0]
+ ldrsht r1, [r8, #3]
+ ldrsht r1, [r8, #255]
+
+@ CHECK: ldrsht r1, [r2] @ encoding: [0x32,0xf9,0x00,0x1e]
+@ CHECK: ldrsht r1, [r8] @ encoding: [0x38,0xf9,0x00,0x1e]
+@ CHECK: ldrsht r1, [r8, #3] @ encoding: [0x38,0xf9,0x03,0x1e]
+@ CHECK: ldrsht r1, [r8, #255] @ encoding: [0x38,0xf9,0xff,0x1e]
+
+
+@------------------------------------------------------------------------------
@ IT
@------------------------------------------------------------------------------
@ Test encodings of a few full IT blocks, not just the IT instruction