The r128103 fix to cope with the removal of addressing modes from the MC instructions
authorJohnny Chen <johnny.chen@apple.com>
Thu, 24 Mar 2011 00:28:38 +0000 (00:28 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Thu, 24 Mar 2011 00:28:38 +0000 (00:28 +0000)
commit2abc9d2444c81bb5ac5aba0da0c863ec80d8f4b6
tree83774011c21c9d7afe49df1c3f21dd0c39518cd7
parent5ffe37f2c7cddb6b7401f4bef9cf19ce90bbbe20
The r128103 fix to cope with the removal of addressing modes from the MC instructions
were incomplete.  The assert stmt needs to be updated and the operand index incrment is wrong.
Fix the bad logic and add some sanity checking to detect bad instruction encoding;
and add a test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
test/MC/Disassembler/ARM/arm-tests.txt