diff --git a/src/backend/x64/emit_x64_vector.cpp b/src/backend/x64/emit_x64_vector.cpp index a519cd09..03d47af0 100644 --- a/src/backend/x64/emit_x64_vector.cpp +++ b/src/backend/x64/emit_x64_vector.cpp @@ -3838,7 +3838,7 @@ static bool VectorSignedSaturatedShiftLeft(VectorArray& dst, const VectorArra dst[i] = saturate(element); qc_flag = true; } else { - const T shifted = element << shift; + const T shifted = T(U(element) << shift); if ((shifted >> shift) != element) { dst[i] = saturate(element);