[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)
commit7cd0201f029101c7b736e027f8c5e590d4350da4
tree74cced3b467585cb3ef20afe4d568a04f2f17e9e
parent03ac7db89d5df4cb7bb63cf53ba299d8cb3459c9
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/2014-07-18-earlyclobber-str-post.ll [new file with mode: 0644]