Skip to content

Commit a05fc9e

Browse files
authored
HexagonGenWideningVecInstr.cpp - fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC. (#171095)
1 parent d1ad085 commit a05fc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ bool HexagonGenWideningVecInstr::replaceWithIntrinsic(Instruction *Inst,
596596
if (IsConstScalar && OPK == OP_Shl) {
597597
if (((NewOpEltSize == 8) && (SplatVal > 0) && (SplatVal < 8)) ||
598598
((NewOpEltSize == 16) && (SplatVal > 0) && (SplatVal < 16))) {
599-
SplatVal = 1 << SplatVal;
599+
SplatVal = 1LL << SplatVal;
600600
OPK = OP_Mul;
601601
} else {
602602
return false;

0 commit comments

Comments
 (0)