diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-08-23 18:56:20 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-08-23 18:56:20 +0000 |
| commit | f1ca6a6df68bb797b414964f53e6d8f6d51e640f (patch) | |
| tree | 826d6f658c4612321e2ca53cdd9b304ef5c29762 | |
| parent | ffa5a909b46b393a420b31bfc26dc3cfa006147e (diff) | |
| download | llvm-f1ca6a6df68bb797b414964f53e6d8f6d51e640f.zip llvm-f1ca6a6df68bb797b414964f53e6d8f6d51e640f.tar.gz llvm-f1ca6a6df68bb797b414964f53e6d8f6d51e640f.tar.bz2 | |
Thumb parsing and encoding for STRH.
llvm-svn: 138352
| -rw-r--r-- | llvm/test/MC/ARM/basic-thumb-instructions.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/basic-thumb-instructions.s b/llvm/test/MC/ARM/basic-thumb-instructions.s index df3d9e4..7692abd 100644 --- a/llvm/test/MC/ARM/basic-thumb-instructions.s +++ b/llvm/test/MC/ARM/basic-thumb-instructions.s @@ -485,3 +485,23 @@ _func: strb r6, [r4, r5] @ CHECK: strb r6, [r4, r5] @ encoding: [0x66,0x55] + + +@------------------------------------------------------------------------------ +@ STRH (immediate) +@------------------------------------------------------------------------------ + strh r3, [r3] + strh r4, [r6, #2] + strh r5, [r7, #62] + +@ CHECK: strh r3, [r3] @ encoding: [0x1b,0x80] +@ CHECK: strh r4, [r6, #2] @ encoding: [0x74,0x80] +@ CHECK: strh r5, [r7, #62] @ encoding: [0xfd,0x87] + + +@------------------------------------------------------------------------------ +@ STRH (register) +@------------------------------------------------------------------------------ + strh r6, [r2, r6] + +@ CHECK: strh r6, [r2, r6] @ encoding: [0x96,0x53] |
