diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-20 20:12:57 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-20 20:12:57 +0000 |
commit | 3f083d5de6bb08cc0abfce39ae9123b72dd28f32 (patch) | |
tree | bce8be740f6ee86f649cb916e608c987d1c5812c | |
parent | 21a710a52e702116007a85217c611da28eb2797c (diff) | |
download | external_llvm-3f083d5de6bb08cc0abfce39ae9123b72dd28f32.zip external_llvm-3f083d5de6bb08cc0abfce39ae9123b72dd28f32.tar.gz external_llvm-3f083d5de6bb08cc0abfce39ae9123b72dd28f32.tar.bz2 |
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
-rw-r--r-- | lib/Target/SparcV9/SparcV9RegInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index 0f59848..1c53703 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; |