Fix the encoding of the armv7m (MClass) for MSR APSR writes which was missing
authorKevin Enderby <enderby@apple.com>
Thu, 17 May 2012 22:18:01 +0000 (22:18 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 17 May 2012 22:18:01 +0000 (22:18 +0000)
commit0fd4f3c8de07e9cfe2a86093ccada82d64f38bfe
treeff979e700e850c62069e8225e67072680143f90c
parentbb8cef51dfe7bb59109786a0ca46ad165c39aa38
Fix the encoding of the armv7m (MClass) for MSR APSR writes which was missing
the 0b10 mask encoding bits.  Make MSR APSR writes without a _<bits> qualifier
an alias for MSR APSR_nzcvq even though ARM as deprecated it use.  Also add
support for suffixes (_nzcvq, _g, _nzcvqg) for APSR versions.  Some FIXMEs in
the code for better error checking when versions shouldn't be used.
rdar://11457025

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157019 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
test/MC/ARM/thumb2-mclass.s