[ARM] Make the assembler reject unpredictable pre/post-indexed ARM LDRH/LDRSH instruc...
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 1 Aug 2014 11:33:47 +0000 (11:33 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 1 Aug 2014 11:33:47 +0000 (11:33 +0000)
commit9bd0d2a6a02750f51633ea20394c37a9c5457eaa
tree30801d1a8c9aa92ba5d8056b6b42c9ae842aa81b
parent70c9be77f76b795b991a92705ddb85f3b4d5d89a
[ARM] Make the assembler reject unpredictable pre/post-indexed ARM LDRH/LDRSH instructions.

The ARM ARM prohibits LDRH/LDRSH instructions with writeback into the source register. With this commit this constraint is now enforced and we stop assembling LDRH/LDRSH instructions with unpredictable behavior.

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