[ARM] Make the assembler reject unpredictable pre/post-indexed ARM STRH instructions.
authorTilmann Scheller <t.scheller@samsung.com>
Thu, 24 Jul 2014 09:55:46 +0000 (09:55 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Thu, 24 Jul 2014 09:55:46 +0000 (09:55 +0000)
commitd51310e486b7b62dc9136b34adef0141a0808bc7
tree150bbe5b10e113f0bb32f01a4fff48fefa040821
parent25f4fcd8e0a2ddc3b3b74be6e821d1321a1c4265
[ARM] Make the assembler reject unpredictable pre/post-indexed ARM STRH instructions.

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

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