[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Jun 5 18:52:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcV9CodeEmitter.cpp updated: 1.12 -> 1.13

---
Log message:

Fixed confusion between register classes and register types.
Now %fcc registers are recognized correctly.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.12 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.13
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.12	Thu Jun  5 15:52:06 2003
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp	Thu Jun  5 18:51:10 2003
@@ -475,8 +475,10 @@
     // At least map fakeReg into its class
     fakeReg = TM.getRegInfo().getClassRegNum(fakeReg, regClass);
     // Find the real register number for use in an instruction
-    realReg = getRealRegNum(fakeReg, regClass, MI);
-    std::cerr << "Reg[" << std::dec << fakeReg << "] = " << realReg << "\n";
+    /////realReg = getRealRegNum(fakeReg, regClass, MI);
+    realReg = getRealRegNum(fakeReg, regType, MI);
+    std::cerr << MO << ": Reg[" << std::dec << fakeReg << "] = "
+              << realReg << "\n";
     rv = realReg;
   } else if (MO.isImmediate()) {
     rv = MO.getImmedValue();





More information about the llvm-commits mailing list