[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)
commit70c9be77f76b795b991a92705ddb85f3b4d5d89a
tree0c1af409fb15089d6ad2de908c53a3e79215cfc0
parent5e2214cca618fc19557edabff3f40f43ecb47392
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214498 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/diagnostics.s