[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jun 16 07:04:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
SparcRegInfo.cpp updated: 1.98 -> 1.99
---
Log message:
Fix invalid number of arguments problem
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.98 llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.99
--- llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.98 Fri Jun 6 04:52:23 2003
+++ llvm/lib/Target/Sparc/SparcRegInfo.cpp Mon Jun 16 07:03:00 2003
@@ -1086,7 +1086,7 @@
// 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 @@
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;
More information about the llvm-commits
mailing list