[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Sun Mar 7 20:23:08 PST 2004
Changes in directory llvm/lib/Target/SparcV8:
SparcV8RegisterInfo.cpp updated: 1.3 -> 1.4
---
Log message:
Teach getRegClassForType where to find FP registers
---
Diffs of the changes: (+2 -3)
Index: llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.3 llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.4
--- llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.3 Sat Feb 28 23:18:30 2004
+++ llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp Fri Mar 5 21:54:13 2004
@@ -88,9 +88,8 @@
const TargetRegisterClass*
SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const {
switch (Ty->getPrimitiveID()) {
- case Type::FloatTyID:
- case Type::DoubleTyID:
- assert(0 && "Floating point registers not supported yet!");
+ case Type::FloatTyID: return &FPRegsInstance;
+ case Type::DoubleTyID: return &DFPRegsInstance;
case Type::LongTyID:
case Type::ULongTyID: assert(0 && "Long values can't fit in registers!");
default: assert(0 && "Invalid type to getClass!");
More information about the llvm-commits
mailing list