mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
Fix invalid number of arguments problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14d7f5dfdd
commit
84c9d5c3c0
@ -1086,7 +1086,7 @@ UltraSparcRegInfo::cpReg2RegMI(std::vector<MachineInstr*>& mvec,
|
|||||||
// Use DestReg+1 to get the name "%ccr" instead of "%xcc" for WRCCR
|
// Use DestReg+1 to get the name "%ccr" instead of "%xcc" for WRCCR
|
||||||
assert(getRegType(SrcReg) == IntRegType
|
assert(getRegType(SrcReg) == IntRegType
|
||||||
&& "Can only copy CC reg to/from integer reg");
|
&& "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);
|
.addMReg(SparcIntRegClass::g0).addMReg(DestReg+1, MOTy::Def);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1214,7 +1214,7 @@ UltraSparcRegInfo::cpMem2RegMI(std::vector<MachineInstr*>& mvec,
|
|||||||
cpMem2RegMI(mvec, SrcPtrReg, Offset, scratchReg, IntRegType);
|
cpMem2RegMI(mvec, SrcPtrReg, Offset, scratchReg, IntRegType);
|
||||||
|
|
||||||
// Use DestReg+1 to get the name "%ccr" instead of "%xcc" for WRCCR
|
// 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);
|
.addMReg(SparcIntRegClass::g0).addMReg(DestReg+1,MOTy::Def);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user