Fix invalid number of arguments problem

llvm-svn: 6692
This commit is contained in:
Chris Lattner 2003-06-16 12:03:00 +00:00
parent 5a4237cbe4
commit cb9ef2bccc
1 changed files with 2 additions and 2 deletions

View File

@ -1086,7 +1086,7 @@ UltraSparcRegInfo::cpReg2RegMI(std::vector<MachineInstr*>& mvec,
// Use DestReg+1 to get the name "%ccr" instead of "%xcc" for WRCCR
assert(getRegType(SrcReg) == IntRegType
&& "Can only copy CC reg to/from integer reg");
MI = BuildMI(V9::WRCCRr, 2).addMReg(SrcReg)
MI = BuildMI(V9::WRCCRr, 3).addMReg(SrcReg)
.addMReg(SparcIntRegClass::g0).addMReg(DestReg+1, MOTy::Def);
}
break;
@ -1214,7 +1214,7 @@ UltraSparcRegInfo::cpMem2RegMI(std::vector<MachineInstr*>& mvec,
cpMem2RegMI(mvec, SrcPtrReg, Offset, scratchReg, IntRegType);
// Use DestReg+1 to get the name "%ccr" instead of "%xcc" for WRCCR
MI = BuildMI(V9::WRCCRr, 2).addMReg(scratchReg)
MI = BuildMI(V9::WRCCRr, 3).addMReg(scratchReg)
.addMReg(SparcIntRegClass::g0).addMReg(DestReg+1,MOTy::Def);
break;