[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)
commit96ef72e54abff11b81fa53a57e22ab4c5bef27d8
tree02d833448ee544639c0cc3f474114d820ea89075
parentbdcfab117c7b7c4408ab5d9a304c054299984dff
[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.

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