diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp index fa6a4645dd9..8543313bc6a 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp @@ -295,7 +295,7 @@ static u128 shuffle_vector(VectorType values, VectorType indices) { auto vector = bit_cast(values); auto indices_vector = bit_cast(indices); - return bit_cast(shuffle(vector, indices_vector)); + return bit_cast(shuffle_or_0(vector, indices_vector)); } void BytecodeInterpreter::call_address(Configuration& configuration, FunctionAddress address) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Operators.h b/Userland/Libraries/LibWasm/AbstractMachine/Operators.h index aa2d71ea5bf..69d8536fece 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Operators.h +++ b/Userland/Libraries/LibWasm/AbstractMachine/Operators.h @@ -10,8 +10,10 @@ #include #include #include +#include #include #include +#include #include #include @@ -229,7 +231,7 @@ struct VectorSwizzle { // https://webassembly.github.io/spec/core/bikeshed/#-mathsfi8x16hrefsyntax-instr-vecmathsfswizzle%E2%91%A0 auto i = bit_cast>(c2); auto j = bit_cast>(c1); - auto result = AK::SIMD::shuffle(i, j); + auto result = shuffle_or_0(i, j); return bit_cast(result); } static StringView name() { return "vec(8x16).swizzle"sv; } @@ -1031,4 +1033,5 @@ struct SaturatingOp { static StringView name() { return "saturating_op"sv; } }; + }