ARM: fix CPS decoding when ambiguous with QADD
authorAmaury de la Vieuville <amaury.dlv@gmail.com>
Sat, 8 Jun 2013 13:38:52 +0000 (13:38 +0000)
committerAmaury de la Vieuville <amaury.dlv@gmail.com>
Sat, 8 Jun 2013 13:38:52 +0000 (13:38 +0000)
commit46e136c952e0242308db2682ba2ec4020cdcd006
tree2b5ba5013c74cf75cd6e961468e27072e8e7f494
parentc64835b0c57913b11abd648b76913390e62af8d6
ARM: fix CPS decoding when ambiguous with QADD

Handle the case when the disassembler table can't tell
the difference between some encodings of QADD and CPS.

Add some necessary safe guards in CPS decoding as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183610 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
test/MC/Disassembler/ARM/basic-arm-instructions.txt
test/MC/Disassembler/ARM/invalid-CPS-arm.txt [new file with mode: 0644]