ARM: provide diagnostics on more writeback LDM/STM instructions
authorTim Northover <tnorthover@apple.com>
Tue, 22 Oct 2013 19:00:39 +0000 (19:00 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 22 Oct 2013 19:00:39 +0000 (19:00 +0000)
commit01b0e94bb731310e72f66977e4b57cd3f3280ba4
tree71431ebc46e5dacada269ca9c27a0350d13ab6f8
parente18273b7be11878999a2ee199d0b1ec468474c9c
ARM: provide diagnostics on more writeback LDM/STM instructions

The set of circumstances where the writeback register is allowed to be in the
list of registers is rather baroque, but I think this implements them all on
the assembly parsing side.

For disassembly, we still warn about an ARM-mode LDM even if the architecture
revision is < v7 (the required architecture information isn't available). It's
a silly instruction anyway, so hopefully no-one will mind.

rdar://problem/15223374

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193185 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
test/MC/ARM/diagnostics.s
test/MC/ARM/thumb-diagnostics.s
test/MC/Disassembler/ARM/invalid-thumbv7.txt