summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-07 19:39:45 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-07 19:39:45 +0000
commit1c822a8929ca696874552f973a59bf49c82e5537 (patch)
tree1735e9340988a6759a8ad769fbdd1330dcfac58e /llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp
parentaac1889a84705788941623e825996b340da18c0e (diff)
downloadbcm5719-llvm-1c822a8929ca696874552f973a59bf49c82e5537.tar.gz
bcm5719-llvm-1c822a8929ca696874552f973a59bf49c82e5537.zip
R600/SI: cleanup VGPR encoding
Remove all the unused code. Patch by: Christian König Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 174656
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp
index 082e7345d4f..89d13072b30 100644
--- a/llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp
@@ -127,7 +127,7 @@ void AMDGPUAsmPrinter::EmitProgramInfo(MachineFunction &MF) {
} else {
assert(!"Unknown register class");
}
- hwReg = RI->getEncodingValue(reg);
+ hwReg = RI->getEncodingValue(reg) & 0xff;
maxUsed = hwReg + width - 1;
if (isSGPR) {
MaxSGPR = maxUsed > MaxSGPR ? maxUsed : MaxSGPR;
OpenPOWER on IntegriCloud