Thumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it.
authorJim Grosbach <grosbach@apple.com>
Tue, 18 Oct 2011 17:09:35 +0000 (17:09 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 18 Oct 2011 17:09:35 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142363 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index 39ed4dd08380dee72fe9be82c2880d5b624181ed..721a04318d5775aa42e8d24ae098196a6c239005 100644 (file)
@@ -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,