ARM: implement support for the UDF mnemonic
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 May 2014 03:47:39 +0000 (03:47 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 May 2014 03:47:39 +0000 (03:47 +0000)
commit0fe443d8932b68ebbe281141ef79f81ee97e292d
tree3e498a4427a4b6868cb4155fe15d07379e674ca6
parent8f844490938e53e21040413d48d9eea926a06dcc
ARM: implement support for the UDF mnemonic

The UDF instruction is a reserved undefined instruction space.  The assembler
mnemonic was introduced with ARM ARM rev C.a.  The instruction is not predicated
and the immediate constant is ignored by the CPU.  Add support for the three
encodings for this instruction.

The changes to the invalid instruction test is due to the fact that the invalid
instructions actually overlap with the undefined instruction.  Introduction of
the new instruction results in a partial decode as an undefined sequence.  Drop
the tests as they are invalid instruction patterns anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208751 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/udf-arm-diagnostics.s [new file with mode: 0644]
test/MC/ARM/udf-arm.s [new file with mode: 0644]
test/MC/ARM/udf-thumb-2-diagnostics.s [new file with mode: 0644]
test/MC/ARM/udf-thumb-2.s [new file with mode: 0644]
test/MC/ARM/udf-thumb-diagnostics.s [new file with mode: 0644]
test/MC/ARM/udf-thumb.s [new file with mode: 0644]
test/MC/Disassembler/ARM/invalid-thumbv7.txt