diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-22 18:04:24 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-22 18:04:24 +0000 |
commit | a33b31be451472e72e6dd88851061e239ad54606 (patch) | |
tree | 938586d075e5708c201018a8e037d5a5606be725 /lib/Target/ARM/ARMInstrThumb.td | |
parent | b113ec55e897c85fda606409c1eedec4f89ec53f (diff) | |
download | llvm-a33b31be451472e72e6dd88851061e239ad54606.tar.gz llvm-a33b31be451472e72e6dd88851061e239ad54606.tar.bz2 llvm-a33b31be451472e72e6dd88851061e239ad54606.tar.xz |
Clean up predicates on ARM target instruction aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb.td | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index a151c0dfaa..f58cb34e60 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -1017,9 +1017,8 @@ def tMOVi8 : T1sI<(outs tGPR:$Rd), (ins imm0_255:$imm8), IIC_iMOVi, } // Because we have an explicit tMOVSr below, we need an alias to handle // the immediate "movs" form here. Blech. -def : InstAlias <"movs $Rdn, $imm", - (tMOVi8 tGPR:$Rdn, CPSR, imm0_255:$imm, 14, 0)>, - Requires<[IsThumb]>; +def : tInstAlias <"movs $Rdn, $imm", + (tMOVi8 tGPR:$Rdn, CPSR, imm0_255:$imm, 14, 0)>; // A7-73: MOV(2) - mov setting flag. @@ -1061,9 +1060,8 @@ def tMUL : // A8.6.105 T1 let AsmMatchConverter = "cvtThumbMultiply"; } -def : InstAlias<"mul${s}${p} $Rdm, $Rn", (tMUL tGPR:$Rdm, s_cc_out:$s, tGPR:$Rn, - pred:$p)>, - Requires<[IsThumb]>; +def :tInstAlias<"mul${s}${p} $Rdm, $Rn", (tMUL tGPR:$Rdm, s_cc_out:$s, tGPR:$Rn, + pred:$p)>; // Move inverse register def tMVN : // A8.6.107 @@ -1115,9 +1113,8 @@ def tRSB : // A8.6.141 "rsb", "\t$Rd, $Rn, #0", [(set tGPR:$Rd, (ineg tGPR:$Rn))]>; -def : InstAlias<"neg${s}${p} $Rd, $Rm", - (tRSB tGPR:$Rd, s_cc_out:$s, tGPR:$Rm, pred:$p)>, - Requires<[IsThumb]>; +def : tInstAlias<"neg${s}${p} $Rd, $Rm", + (tRSB tGPR:$Rd, s_cc_out:$s, tGPR:$Rm, pred:$p)>; // Subtract with carry register let Uses = [CPSR] in |