diff options
author | Owen Anderson <resistor@mac.com> | 2011-09-09 22:24:36 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-09-09 22:24:36 +0000 |
commit | 08fef885eb39339a47e3be7f0842b1db33683003 (patch) | |
tree | 6f8c60e107564517bb6b920638240115a0193807 /test/MC | |
parent | 46ac94ba8b22f1c24100765c4da9d65d7e858410 (diff) | |
download | llvm-08fef885eb39339a47e3be7f0842b1db33683003.tar.gz llvm-08fef885eb39339a47e3be7f0842b1db33683003.tar.bz2 llvm-08fef885eb39339a47e3be7f0842b1db33683003.tar.xz |
Fix assembly/disassembly of Thumb2 ADR instructions with immediate operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/basic-thumb2-instructions.s | 6 | ||||
-rw-r--r-- | test/MC/Disassembler/ARM/thumb2.txt | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s index bb57bb7ad8..4c4938fde7 100644 --- a/test/MC/ARM/basic-thumb2-instructions.s +++ b/test/MC/ARM/basic-thumb2-instructions.s @@ -107,6 +107,12 @@ _func: @ FIXME: ADR @------------------------------------------------------------------------------ + subw r11, pc, #3270 + adr.w r11, #-826 + +@ CHECK: subw r11, pc, #3270 @ encoding: [0xaf,0xf6,0xc6,0x4b] +@ CHECK: adr.w r11, #-826 @ encoding: [0xaf,0xf2,0x3a,0x3b] + @------------------------------------------------------------------------------ @ AND (immediate) @------------------------------------------------------------------------------ diff --git a/test/MC/Disassembler/ARM/thumb2.txt b/test/MC/Disassembler/ARM/thumb2.txt index c38c44c33d..806c44f2b1 100644 --- a/test/MC/Disassembler/ARM/thumb2.txt +++ b/test/MC/Disassembler/ARM/thumb2.txt @@ -88,8 +88,13 @@ #------------------------------------------------------------------------------ -# FIXME: ADR +# ADR #------------------------------------------------------------------------------ +# CHECK: subw r11, pc, #3270 +# CHECK: subw r11, pc, #826 + +0xaf 0xf6 0xc6 0x4b +0xaf 0xf2 0x3a 0x3b #------------------------------------------------------------------------------ # AND (immediate) |