[ARM] Add earlyclobber constraint to pre/post-indexed ARM STRH instructions.
authorTilmann Scheller <t.scheller@samsung.com>
Wed, 23 Jul 2014 08:12:51 +0000 (08:12 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Wed, 23 Jul 2014 08:12:51 +0000 (08:12 +0000)
commitfbf7b85869c0304d51b4797897d61fc9ffa5bda3
treea9692ef7c278647eb55ac8fb68fb34999cb01a8a
parenta6425604c2946855d5e4d732b8d0f714107918b7
[ARM] Add earlyclobber constraint to pre/post-indexed ARM STRH instructions.

The post-indexed instructions were missing the constraint, causing unpredictable STRH 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/2014-07-18-earlyclobber-str-post.ll