[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)
commit8ff079c16b928778763f8776f12b27d9a31e10e5
tree7b36b1f8df7622555b48fba9a4dd977ca0ecddaf
parent8ba74305da26610b14348611912a4b7ce844d514
[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.

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