Fix invalid number of arguments problem

llvm-svn: 6692
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
index 780a557..fbed000 100644
--- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
@@ -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;