mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Teach getRegClassForType where to find FP registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
deb8712b49
commit
a98e051417
@ -88,9 +88,8 @@ void SparcV8RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
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!");
|
||||
|
@ -88,9 +88,8 @@ void SparcV8RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
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!");
|
||||
|
Loading…
Reference in New Issue
Block a user