diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-07 21:06:46 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-07 21:06:46 +0000 |
commit | ed1cb6defa02d92302288410c35464c764adb060 (patch) | |
tree | 0d565fbeba471a6cea36b672f547b05482aaa04d | |
parent | a8307dd1c9279cbde1f3497e530d2ed9d014a0c5 (diff) | |
download | external_llvm-ed1cb6defa02d92302288410c35464c764adb060.zip external_llvm-ed1cb6defa02d92302288410c35464c764adb060.tar.gz external_llvm-ed1cb6defa02d92302288410c35464c764adb060.tar.bz2 |
Add tests for Thumb2 LDR(immediate) from r139254.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139255 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/basic-thumb2-instructions.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index aec17e6..c041015 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -515,6 +515,22 @@ _func: @------------------------------------------------------------------------------ +@ LDR(immediate) +@------------------------------------------------------------------------------ + ldr r5, [r5, #-4] + ldr r5, [r6, #32] + ldr r5, [r6, #33] + ldr r5, [r6, #257] + ldr.w pc, [r7, #257] + +@ CHECK: ldr r5, [r5, #-4] @ encoding: [0x55,0xf8,0x04,0x5c] +@ CHECK: ldr r5, [r6, #32] @ encoding: [0x35,0x6a] +@ CHECK: ldr.w r5, [r6, #33] @ encoding: [0xd6,0xf8,0x21,0x50] +@ CHECK: ldr.w r5, [r6, #257] @ encoding: [0xd6,0xf8,0x01,0x51] +@ CHECK: ldr.w pc, [r7, #257] @ encoding: [0xd7,0xf8,0x01,0xf1] + + +@------------------------------------------------------------------------------ @ IT @------------------------------------------------------------------------------ @ Test encodings of a few full IT blocks, not just the IT instruction |