mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Make SparcV9RegInfo::getRegType() return the right answer for registers
of IntCC, FloatCC, and Special types. Make SparcV9RegInfo::getRegClassIDOfRegType() return the right answer if you ask for the class corresponding to SpecialRegType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
09233fb86e
commit
6896a7dd43
@ -256,11 +256,11 @@ int SparcV9RegInfo::getRegType(int unifiedRegNum) const
|
||||
return FPSingleRegType;
|
||||
else if (unifiedRegNum < (64 + 32))
|
||||
return FPDoubleRegType;
|
||||
else if (unifiedRegNum < (64+32+4))
|
||||
return FloatCCRegType;
|
||||
else if (unifiedRegNum < (64+32+4+2))
|
||||
return IntCCRegType;
|
||||
else if (unifiedRegNum < (64+32+4+2+1))
|
||||
else if (unifiedRegNum < (64+32+3))
|
||||
return IntCCRegType;
|
||||
else if (unifiedRegNum < (64+32+3+4))
|
||||
return FloatCCRegType;
|
||||
else if (unifiedRegNum < (64+32+3+4+1))
|
||||
return SpecialRegType;
|
||||
else
|
||||
assert(0 && "Invalid unified register number in getRegType");
|
||||
@ -300,6 +300,7 @@ unsigned SparcV9RegInfo::getRegClassIDOfRegType(int regType) const {
|
||||
case FPDoubleRegType: return FloatRegClassID;
|
||||
case IntCCRegType: return IntCCRegClassID;
|
||||
case FloatCCRegType: return FloatCCRegClassID;
|
||||
case SpecialRegType: return SpecialRegClassID;
|
||||
default:
|
||||
assert(0 && "Invalid register type in getRegClassIDOfRegType");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user