[ARM] Make the assembler reject unpredictable pre/post-indexed ARM LDR instructions.
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 1 Aug 2014 11:08:51 +0000 (11:08 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 1 Aug 2014 11:08:51 +0000 (11:08 +0000)
commit8ba74305da26610b14348611912a4b7ce844d514
treeb26f59e9fc8b33d9ecb9cfc70d4923cef5f53f4e
parentcd8ba86990666469604eb0b37c666b575c1bc427
[ARM] Make the assembler reject unpredictable pre/post-indexed ARM LDR instructions.

The ARM ARM prohibits LDR instructions with writeback into the destination register. With this commit this constraint is now enforced and we stop assembling LDR instructions with unpredictable behavior.

llvm-svn: 214498
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/diagnostics.s