Make it legal to ask for the type of a specialreg
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 20 Apr 2004 20:12:57 +0000 (20:12 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 20 Apr 2004 20:12:57 +0000 (20:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13078 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9RegInfo.cpp

index 0f598485bfe738891ca0d506070a66945a5e2802..1c537030fc19b6db026552f4abd2697d2e951ece 100644 (file)
@@ -260,6 +260,8 @@ int SparcV9RegInfo::getRegType(int unifiedRegNum) const
     return FloatCCRegType;
   else if (unifiedRegNum < (64+32+4+2))  
     return IntCCRegType;             
+  else if (unifiedRegNum < (64+32+4+2+1))  
+    return SpecialRegType;             
   else 
     assert(0 && "Invalid unified register number in getRegType");
   return 0;