Skip to content

Commit

Permalink
[X86] Fix MSVC implicit shift extension warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Sep 20, 2024
1 parent cee0bf9 commit 3bcffe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30007,7 +30007,7 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
// This is equal to Masked - 2*SignBitMask which will correctly sign
// extend our result.
SDValue CstHighBit =
DAG.getConstant(1 << (EltSizeInBits - 1), dl, NarrowScalarVT);
DAG.getConstant(1ULL << (EltSizeInBits - 1), dl, NarrowScalarVT);
SDValue SplatHighBit = DAG.getSplat(VT, dl, CstHighBit);
// This does not induce recursion, all operands are constants.
SDValue SignBitMask = DAG.getNode(LogicalOpc, dl, VT, SplatHighBit, Amt);
Expand Down

0 comments on commit 3bcffe5

Please sign in to comment.