diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-10 23:18:30 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-10 23:18:30 +0000 |
commit | 64104f48f23ff46538e46f01c076fef2ff55d97f (patch) | |
tree | 2bdc8d419f18eaca40ad76f9768db8f9f6ab36ed | |
parent | e0109c07ff2861cbfbcbcd0ff69acd420c82ca9f (diff) |
ARM tests for LDRSHT assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137274 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/arm-memory-instructions.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/ARM/arm-memory-instructions.s b/test/MC/ARM/arm-memory-instructions.s index ff65b5aafb..e011718b5a 100644 --- a/test/MC/ARM/arm-memory-instructions.s +++ b/test/MC/ARM/arm-memory-instructions.s @@ -278,3 +278,18 @@ _func: @ CHECK: ldrsh r6, [r9], r8 @ encoding: [0xf8,0x60,0x99,0xe0] @ CHECK: ldrsh r7, [r8], -r3 @ encoding: [0xf3,0x70,0x18,0xe0] + +@------------------------------------------------------------------------------ +@ LDRSHT +@------------------------------------------------------------------------------ + ldrsht r5, [r6], #1 + ldrsht r3, [r8], #-12 + ldrsht r8, [r9], r5 + ldrsht r2, [r1], -r4 + +@ CHECK: ldrsht r5, [r6], #1 @ encoding: [0xf1,0x50,0xf6,0xe0] +@ CHECK: ldrsht r3, [r8], #-12 @ encoding: [0xfc,0x30,0x78,0xe0] +@ CHECK: ldrsht r8, [r9], r5 @ encoding: [0xf5,0x80,0xb9,0xe0] +@ CHECK: ldrsht r2, [r1], -r4 @ encoding: [0xf4,0x20,0x31,0xe0] + + |