summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-08-31 13:49:06 +0200
committerChristian König <[email protected]>2012-09-04 10:51:11 +0200
commit8758183f0aa7147310fb5c5e46a47f59c2d4bcc1 (patch)
treee8492a3517b5b42e7e5dbdd9cae599b201e858ca /src/gallium/drivers
parent7eb504019731368fd55f01e0264b195d4f99ae93 (diff)
radeon/llvm: fix SelectADDR8BitOffset
The offset is unsigned, not signed. Signed-off-by: Christian König <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp b/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp
index 63bc21edf56..807113134d2 100644
--- a/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp
+++ b/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp
@@ -337,7 +337,7 @@ bool AMDGPUDAGToDAGISel::SelectADDR8BitOffset(SDValue Addr, SDValue& Base,
}
// Check if the constant argument fits in 8-bits. The offset is in bytes
// so we need to convert it to dwords.
- if (isInt<8>(OffsetNode->getZExtValue() >> 2)) {
+ if (isUInt<8>(OffsetNode->getZExtValue() >> 2)) {
Match = true;
Offset = CurDAG->getTargetConstant(OffsetNode->getZExtValue() >> 2,
MVT::i32);