Skip to content

Commit 93feee8

Browse files
Zzzabiyakaloganek
authored andcommitted
Fix load/store
Fix v128 load/store style
1 parent 3e9a5b0 commit 93feee8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/iwasm/interpreter/wasm_interp_fast.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -5837,8 +5837,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
58375837
{
58385838
uint32 offset, addr;
58395839
offset = read_uint32(frame_ip);
5840-
addr = GET_OPERAND(uint32, I32, 0);
5841-
frame_ip += 2;
5840+
addr = POP_I32();
58425841
addr_ret = GET_OFFSET();
58435842
CHECK_MEMORY_OVERFLOW(16);
58445843
PUT_V128_TO_ADDR(frame_lp + addr_ret, LOAD_V128(maddr));
@@ -5932,9 +5931,10 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
59325931
uint32 offset, addr;
59335932
offset = read_uint32(frame_ip);
59345933
V128 data = POP_V128();
5935-
int32 base = POP_I32();
5936-
offset += base;
5937-
addr = GET_OPERAND(uint32, I32, 0);
5934+
addr = POP_I32();
5935+
5936+
V128 data;
5937+
data = POP_V128();
59385938

59395939
CHECK_MEMORY_OVERFLOW(16);
59405940
STORE_V128(maddr, data);

0 commit comments

Comments
 (0)