diff options
| author | Tilmann Scheller <t.scheller@samsung.com> | 2014-07-24 09:55:46 +0000 |
|---|---|---|
| committer | Tilmann Scheller <t.scheller@samsung.com> | 2014-07-24 09:55:46 +0000 |
| commit | 96ef72e54abff11b81fa53a57e22ab4c5bef27d8 (patch) | |
| tree | 02d833448ee544639c0cc3f474114d820ea89075 /llvm/lib/Target/ARM/AsmParser | |
| parent | bdcfab117c7b7c4408ab5d9a304c054299984dff (diff) | |
| download | bcm5719-llvm-96ef72e54abff11b81fa53a57e22ab4c5bef27d8.tar.gz bcm5719-llvm-96ef72e54abff11b81fa53a57e22ab4c5bef27d8.zip | |
[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
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser')
| -rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index ccef6c3b6cb..e34282bfca7 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -5732,6 +5732,8 @@ bool ARMAsmParser::validateInstruction(MCInst &Inst, case ARM::STR_PRE_REG: case ARM::STR_POST_IMM: case ARM::STR_POST_REG: + case ARM::STRH_PRE: + case ARM::STRH_POST: case ARM::STRB_PRE_IMM: case ARM::STRB_PRE_REG: case ARM::STRB_POST_IMM: |

