mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
R600/SI: Return the correct index for VGPRs in getHWRegIndex()
The register index is stored in the low 8-bits of the encoding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,7 +56,7 @@ const TargetRegisterClass * SIRegisterInfo::getCFGStructurizerRegClass(
|
|||||||
}
|
}
|
||||||
|
|
||||||
unsigned SIRegisterInfo::getHWRegIndex(unsigned Reg) const {
|
unsigned SIRegisterInfo::getHWRegIndex(unsigned Reg) const {
|
||||||
return getEncodingValue(Reg);
|
return getEncodingValue(Reg) & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
const TargetRegisterClass *SIRegisterInfo::getPhysRegClass(unsigned Reg) const {
|
const TargetRegisterClass *SIRegisterInfo::getPhysRegClass(unsigned Reg) const {
|
||||||
|
Reference in New Issue
Block a user