[ARM] Add earlyclobber constraint to pre/post-indexed ARM STR instructions.
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 18 Jul 2014 12:05:49 +0000 (12:05 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 18 Jul 2014 12:05:49 +0000 (12:05 +0000)
commit0fc933d6b81d3841f7e67d8a1adcffc5999493e8
treed9cdb0d038c4d084bbd0b502c89a16e04572f651
parent838afd799de55a9b8ccb219ba406a6bd0b94ecd8
[ARM] Add earlyclobber constraint to pre/post-indexed ARM STR instructions.

The post-indexed instructions were missing the constraint, causing unpredictable STR instructions to be emitted.

The earlyclobber constraint on the pre-indexed STR instructions is not strictly necessary, as the instruction selection for pre-indexed STR instructions goes through an additional layer of pseudo instructions which have the constraint defined, however it doesn't hurt to specify the constraint directly on the pre-indexed instructions as well, since at some point someone might create instances of them programmatically and then the constraint is definitely needed.

This fixes PR20323.

llvm-svn: 213369
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/test/CodeGen/ARM/2014-07-18-earlyclobber-str-post.ll [new file with mode: 0644]