diff options
-rw-r--r-- | test/MC/ARM/basic-thumb2-instructions.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index dbd63f6955..cddbb17b09 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -850,6 +850,20 @@ _func: @------------------------------------------------------------------------------ +@ 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 |