Skip to content

Commit d3db537

Browse files
committed
use Lo_32
1 parent b07aea4 commit d3db537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13882,7 +13882,7 @@ static SDValue tryFoldMADwithSRL(SelectionDAG &DAG, const SDLoc &SL,
1388213882
return SDValue();
1388313883

1388413884
SDValue ConstMul =
13885-
DAG.getConstant(Const->getZExtValue() & 0x00000000FFFFFFFF, SL, MVT::i32);
13885+
DAG.getConstant(Lo_32(Const->getZExtValue()), SL, MVT::i32);
1388613886
return getMad64_32(DAG, SL, MVT::i64,
1388713887
DAG.getNode(ISD::TRUNCATE, SL, MVT::i32, MulLHS), ConstMul,
1388813888
DAG.getZeroExtendInReg(AddRHS, SL, MVT::i32), false);

0 commit comments

Comments
 (0)