From: Jim Grosbach Date: Tue, 18 Oct 2011 17:09:35 +0000 (+0000) Subject: Thumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9858a48afcd39d41ad7d424b159422370cffca84;p=oota-llvm.git Thumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 39ed4dd0838..721a04318d5 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -1695,6 +1695,8 @@ def t2MOVr : T2sTwoReg<(outs GPRnopc:$Rd), (ins GPR:$Rm), IIC_iMOVr, let Inst{14-12} = 0b000; let Inst{7-4} = 0b0000; } +def : t2InstAlias<"mov${p}.w $Rd, $Rm", (t2MOVr GPRnopc:$Rd, GPR:$Rm, + pred:$p, zero_reg)>; def : t2InstAlias<"movs${p}.w $Rd, $Rm", (t2MOVr GPRnopc:$Rd, GPR:$Rm, pred:$p, CPSR)>; def : t2InstAlias<"movs${p} $Rd, $Rm", (t2MOVr GPRnopc:$Rd, GPR:$Rm,