ADR was added with the wrong encoding for inst{24-21}, and the ARM decoder was fooled.
authorJohnny Chen <johnny.chen@apple.com>
Thu, 24 Mar 2011 20:42:48 +0000 (20:42 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Thu, 24 Mar 2011 20:42:48 +0000 (20:42 +0000)
commite6d69e7dbee88a0a88f252a3e1e3f5f81472cf4b
tree303555abce960ceb8f0aed03bc6d71c4a40d0a6e
parent23670e5b95fcaf88238239729457393b8cc831ff
ADR was added with the wrong encoding for inst{24-21}, and the ARM decoder was fooled.
Set the encoding bits to {0,?,?,0}, not 0.  Plus delegate the disassembly of ADR to
the more generic ADDri/SUBri instructions, and add a test case for that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
test/MC/Disassembler/ARM/arm-tests.txt
utils/TableGen/ARMDecoderEmitter.cpp