diff --git a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp index 7b8cf0e0c896..93b23162cb93 100644 --- a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp @@ -131,7 +131,7 @@ SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const { case Type::FloatTyID: return &FPRegsInstance; case Type::DoubleTyID: return &DFPRegsInstance; case Type::LongTyID: - case Type::ULongTyID: return &LongRegsInstance; + case Type::ULongTyID: assert(0 && "Long values do not fit in registers!"); default: assert(0 && "Invalid type to getClass!"); case Type::BoolTyID: case Type::SByteTyID: diff --git a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.td b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.td index d424ebe6485c..0f043919de8c 100644 --- a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.td +++ b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.td @@ -16,10 +16,6 @@ class Ri num> : Register { field bits<5> Num = num; } -// Rl - Slots in the integer register file for 64-bit integer values. -class Rl num> : Register { - field bits<5> Num = num; -} // Rf - 32-bit floating-point registers class Rf num> : Register { field bits<5> Num = num; @@ -44,12 +40,6 @@ let Namespace = "V8" in { def I0 : Ri<24>; def I1 : Ri<25>; def I2 : Ri<26>; def I3 : Ri<27>; def I4 : Ri<28>; def I5 : Ri<29>; def I6 : Ri<30>; def I7 : Ri<31>; - // Aliases of the Ri registers used to hold 64-bit integer values. - def LG2 : Rl< 2>; def LG4 : Rl< 4>; def LG6 : Rl< 6>; - def LO0 : Rl< 8>; def LO2 : Rl<10>; def LO4 : Rl<12>; - def LL0 : Rl<16>; def LL2 : Rl<18>; def LL4 : Rl<20>; def LL6 : Rl<22>; - def LI0 : Rl<24>; def LI2 : Rl<26>; def LI4 : Rl<28>; - // Standard register aliases. def SP : Ri<14>; def FP : Ri<30>; @@ -73,7 +63,6 @@ let Namespace = "V8" in { def Y : Rs<0>; } - // Register classes. // // FIXME: the register order should be defined in terms of the preferred @@ -92,9 +81,6 @@ def IntRegs : RegisterClass; - def FPRegs : RegisterClass; @@ -120,19 +106,3 @@ def : RegisterAliases; def : RegisterAliases; def : RegisterAliases; def : RegisterAliases; - -// Tell the register file generator that the long integer pseudo-registers -// alias the registers used for single-word integer values. -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases; -def : RegisterAliases;