From 6994dab12a0fc298078e25a67a34ee237cdd0edf Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 5 Jun 2003 23:51:10 +0000 Subject: [PATCH] Fixed confusion between register classes and register types. Now %fcc registers are recognized correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6640 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9CodeEmitter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 3ec0656ab39..be4d3df64e0 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -475,8 +475,10 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI, // 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();