LibWasm: Fix SIMD bit shift right

Set the sign in the vector's element type (even though it's a bit
redundant).
This commit is contained in:
Diego Frias 2024-07-23 09:16:21 -07:00 committed by Ali Mohammad Pur
parent 40f9c9f82a
commit d841742c35
Notes: github-actions[bot] 2024-07-24 21:24:12 +00:00

View file

@ -216,7 +216,7 @@ struct VectorShiftRight {
auto operator()(u128 lhs, i32 rhs) const
{
auto shift_value = rhs % (sizeof(lhs) * 8 / VectorSize);
return bit_cast<u128>(bit_cast<Native128ByteVectorOf<NativeIntegralType<128 / VectorSize>, SetSign>>(lhs) >> shift_value);
return bit_cast<u128>(bit_cast<Native128ByteVectorOf<SetSign<NativeIntegralType<128 / VectorSize>>, SetSign>>(lhs) >> shift_value);
}
static StringView name()
{