Make it legal to request a load or store of %fsr.
llvm-svn: 13073
diff --git a/llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp b/llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
index b6da2e6..0f59848 100644
--- a/llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
@@ -808,6 +808,7 @@
cpReg2MemMI(mvec, scratchReg, PtrReg, Offset, IntRegType);
return;
+ case SpecialRegType: // used only for %fsr itself.
case FloatCCRegType: {
unsigned fsrReg = getUnifiedRegNum(SparcV9RegInfo::SpecialRegClassID,
SparcV9SpecialRegClass::fsr);
@@ -898,6 +899,7 @@
SparcV9IntCCRegClass::ccr), MachineOperand::Def));
break;
+ case SpecialRegType: // used only for %fsr itself
case FloatCCRegType: {
unsigned fsrRegNum = getUnifiedRegNum(SparcV9RegInfo::SpecialRegClassID,
SparcV9SpecialRegClass::fsr);