OSDN Git Service

Thumb2 M-class MSR instruction support changes
authorRenato Golin <renato.golin@linaro.org>
Mon, 1 Sep 2014 11:25:07 +0000 (11:25 +0000)
committerRenato Golin <renato.golin@linaro.org>
Mon, 1 Sep 2014 11:25:07 +0000 (11:25 +0000)
commit09e28e39f0287639ea33353d8c6435b54d9b2b35
tree7c4bf8f4266efc87c4dc970796a1c944e94b4b31
parent7948290532c1b54cbad5a189d0728c0ed9d5095c
Thumb2 M-class MSR instruction support changes

This patch implements a few changes related to the Thumb2 M-class MSR instruction:
 * better handling of unpredictable encodings,
 * recognition of the _g and _nzcvqg variants by the asm parser only if the DSP
   extension is available, preferred output of MSR APSR moves with the _<bits>
   suffix for v7-M.

Patch by Petr Pavlu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
test/MC/ARM/thumb2-mclass.s
test/MC/ARM/thumbv7em.s [new file with mode: 0644]
test/MC/Disassembler/ARM/invalid-thumb-MSR-MClass.txt
test/MC/Disassembler/ARM/thumb-MSR-MClass.txt