1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Teach getRegClassForType where to find FP registers

llvm-svn: 12180
This commit is contained in:
Brian Gaeke 2004-03-06 03:54:13 +00:00
parent 5a9cae47a4
commit 13f3e2f254

View File

@ -88,9 +88,8 @@ void SparcV8RegisterInfo::emitEpilogue(MachineFunction &MF,
const TargetRegisterClass* const TargetRegisterClass*
SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const { SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const {
switch (Ty->getPrimitiveID()) { switch (Ty->getPrimitiveID()) {
case Type::FloatTyID: case Type::FloatTyID: return &FPRegsInstance;
case Type::DoubleTyID: case Type::DoubleTyID: return &DFPRegsInstance;
assert(0 && "Floating point registers not supported yet!");
case Type::LongTyID: case Type::LongTyID:
case Type::ULongTyID: assert(0 && "Long values can't fit in registers!"); case Type::ULongTyID: assert(0 && "Long values can't fit in registers!");
default: assert(0 && "Invalid type to getClass!"); default: assert(0 && "Invalid type to getClass!");