From d841742c3582e086613bda41a9679dfa6f7f2393 Mon Sep 17 00:00:00 2001 From: Diego Frias Date: Tue, 23 Jul 2024 09:16:21 -0700 Subject: [PATCH] LibWasm: Fix SIMD bit shift right Set the sign in the vector's element type (even though it's a bit redundant). --- Userland/Libraries/LibWasm/AbstractMachine/Operators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Operators.h b/Userland/Libraries/LibWasm/AbstractMachine/Operators.h index 9865ab425d0..e421cf8af11 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Operators.h +++ b/Userland/Libraries/LibWasm/AbstractMachine/Operators.h @@ -216,7 +216,7 @@ struct VectorShiftRight { auto operator()(u128 lhs, i32 rhs) const { auto shift_value = rhs % (sizeof(lhs) * 8 / VectorSize); - return bit_cast(bit_cast, SetSign>>(lhs) >> shift_value); + return bit_cast(bit_cast>, SetSign>>(lhs) >> shift_value); } static StringView name() {