From: Vitaly Buka Date: Sat, 11 Feb 2017 12:44:03 +0000 (+0000) Subject: Fix "left shift of negative value -1" introduced by r294805 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5de15e70cbc1c040638ac681eec149940b3c2e81;p=llvm Fix "left shift of negative value -1" introduced by r294805 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294843 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonHardwareLoops.cpp b/lib/Target/Hexagon/HexagonHardwareLoops.cpp index e477dcc0f64..07e05c4b18d 100644 --- a/lib/Target/Hexagon/HexagonHardwareLoops.cpp +++ b/lib/Target/Hexagon/HexagonHardwareLoops.cpp @@ -1511,7 +1511,7 @@ bool HexagonHardwareLoops::checkForImmediate(const MachineOperand &MO, int64_t V1, V2; if (!checkForImmediate(S1, V1) || !checkForImmediate(S2, V2)) return false; - TV = V2 | (V1 << 32); + TV = V2 | (static_cast(V1) << 32); break; } case TargetOpcode::REG_SEQUENCE: {