Skip to content
Prev Previous commit
Next Next commit
Fix MULHI flags
  • Loading branch information
pentp committed May 18, 2021
commit 8b0fc7d649da17247e632161abe5b2033503ab0d
1 change: 1 addition & 0 deletions src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5224,6 +5224,7 @@ bool Lowering::LowerUnsignedDivOrMod(GenTreeOp* divMod)
{
divMod->SetOper(GT_MULHI);
divMod->gtOp1 = adjustedDividend;
divMod->gtFlags |= GTF_UNSIGNED;
divisor->AsIntCon()->SetIconValue(magic);
}
else
Expand Down