From 93feee8ee3ed2fb02b92fe481c25384d18fdd56d Mon Sep 17 00:00:00 2001 From: Maks Litskevich Date: Fri, 24 Jan 2025 12:27:33 +0000 Subject: [PATCH] Fix load/store Fix v128 load/store style --- core/iwasm/interpreter/wasm_interp_fast.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index 5aee64b4d..6dc9351e0 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -5837,8 +5837,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module, { uint32 offset, addr; offset = read_uint32(frame_ip); - addr = GET_OPERAND(uint32, I32, 0); - frame_ip += 2; + addr = POP_I32(); addr_ret = GET_OFFSET(); CHECK_MEMORY_OVERFLOW(16); PUT_V128_TO_ADDR(frame_lp + addr_ret, LOAD_V128(maddr)); @@ -5932,9 +5931,10 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module, uint32 offset, addr; offset = read_uint32(frame_ip); V128 data = POP_V128(); - int32 base = POP_I32(); - offset += base; - addr = GET_OPERAND(uint32, I32, 0); + addr = POP_I32(); + + V128 data; + data = POP_V128(); CHECK_MEMORY_OVERFLOW(16); STORE_V128(maddr, data);