diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-08 00:39:19 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-08 00:39:19 +0000 |
commit | eeec025cf5a2236ee9527a3312496a6ea42100c6 (patch) | |
tree | 77e5c1cd0a519a31b9113a2189ffd4c415842080 /test/MC | |
parent | 170580e8f413271f665d78f349237c4bcaf9d8c4 (diff) | |
download | external_llvm-eeec025cf5a2236ee9527a3312496a6ea42100c6.zip external_llvm-eeec025cf5a2236ee9527a3312496a6ea42100c6.tar.gz external_llvm-eeec025cf5a2236ee9527a3312496a6ea42100c6.tar.bz2 |
Thumb2 assembly parsing and encoding for LDR pre-indexed w/ writeback.
Adjust encoding of writeback load/store instructions to better reflect the
way the operand types are represented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/basic-thumb2-instructions.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index 1abbd5f..c88eb24 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -548,6 +548,9 @@ _func: ldr r8, [r8, r2, lsl #2] ldr r7, [sp, r2, lsl #1] ldr r7, [sp, r2, lsl #0] + ldr r2, [r4, #255]! + ldr r8, [sp, #4]! + ldr lr, [sp, #-4]! @ CHECK: ldr.w r1, [r8, r1] @ encoding: [0x58,0xf8,0x01,0x10] @ CHECK: ldr.w r4, [r5, r2] @ encoding: [0x55,0xf8,0x02,0x40] @@ -555,6 +558,9 @@ _func: @ CHECK: ldr.w r8, [r8, r2, lsl #2] @ encoding: [0x58,0xf8,0x22,0x80] @ CHECK: ldr.w r7, [sp, r2, lsl #1] @ encoding: [0x5d,0xf8,0x12,0x70] @ CHECK: ldr.w r7, [sp, r2] @ encoding: [0x5d,0xf8,0x02,0x70] +@ CHECK: ldr r2, [r4, #255]! @ encoding: [0x54,0xf8,0xff,0x2f] +@ CHECK: ldr r8, [sp, #4]! @ encoding: [0x5d,0xf8,0x04,0x8f] +@ CHECK: ldr lr, [sp, #-4]! @ encoding: [0x5d,0xf8,0x04,0xed] @------------------------------------------------------------------------------ |