From 21c5084d233a0e04bc1235c0f53852d0cd2d3a08 Mon Sep 17 00:00:00 2001 From: Diego Frias Date: Thu, 18 Jul 2024 19:45:01 -0700 Subject: [PATCH] LibWasm: Fix `v128.any_true` instruction --- .../Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp index a20a70b944..2360f0fa61 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp @@ -1677,7 +1677,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi } case Instructions::v128_any_true.value(): { auto vector = *configuration.stack().pop().get().to(); - configuration.stack().push(Value(static_cast(vector == 0))); + configuration.stack().push(Value(static_cast(vector != 0))); return; } case Instructions::v128_load8_lane.value():