diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-09 20:01:18 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-09 20:01:18 +0000 |
commit | 56806c29973a801a8311b5501c05a0a49651b42f (patch) | |
tree | 79f080f57c023b2ae640b7c3c44d88644a8aa5a6 | |
parent | a315a9909387cdf8ce36077d7aa91844caa2f19d (diff) |
Thumb2 assembly parsing and encoding for LDRSHT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139392 91177308-0d34-0410-b5e6-96231b3b80d8
-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 |