LibWasm: Fix v128.any_true instruction

This commit is contained in:
Diego Frias 2024-07-18 19:45:01 -07:00 committed by Ali Mohammad Pur
parent 616048c67e
commit 21c5084d23
Notes: github-actions[bot] 2024-07-20 09:18:31 +00:00

View file

@ -1677,7 +1677,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
}
case Instructions::v128_any_true.value(): {
auto vector = *configuration.stack().pop().get<Value>().to<u128>();
configuration.stack().push(Value(static_cast<i32>(vector == 0)));
configuration.stack().push(Value(static_cast<i32>(vector != 0)));
return;
}
case Instructions::v128_load8_lane.value():