From: Brian Gaeke Date: Tue, 20 Apr 2004 20:12:57 +0000 (+0000) Subject: Make it legal to ask for the type of a specialreg X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f083d5de6bb08cc0abfce39ae9123b72dd28f32;p=oota-llvm.git Make it legal to ask for the type of a specialreg git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index 0f598485bfe..1c537030fc1 100644 --- a/lib/Target/SparcV9/SparcV9RegInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp @@ -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;