Module: Mesa Branch: master Commit: 8758183f0aa7147310fb5c5e46a47f59c2d4bcc1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8758183f0aa7147310fb5c5e46a47f59c2d4bcc1
Author: Christian König <deathsim...@vodafone.de> Date: Fri Aug 31 13:49:06 2012 +0200 radeon/llvm: fix SelectADDR8BitOffset The offset is unsigned, not signed. Signed-off-by: Christian König <deathsim...@vodafone.de> Reviewed-by: Michel Dänzer <michel.daen...@amd.com> --- src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp b/src/gallium/drivers/radeon/AMDILISelDAGToDAG.cpp index 63bc21e..8071131 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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit