Skip to content

Commit

Permalink
Fix load/store
Browse files Browse the repository at this point in the history
Fix v128 load/store

style
  • Loading branch information
Zzzabiyaka committed Feb 12, 2025
1 parent 7fe0f5a commit 993ff54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/iwasm/interpreter/wasm_interp_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 993ff54

Please sign in to comment.