@@ -3541,7 +3541,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
35413541 HANDLE_OP_END ();
35423542 }
35433543
3544- #if WASM_ENABLE_SIMDE != 0
3544+ #if WASM_ENABLE_SIMD != 0
35453545 HANDLE_OP (EXT_OP_SET_LOCAL_FAST_V128 )
35463546 HANDLE_OP (EXT_OP_TEE_LOCAL_FAST_V128 )
35473547 {
@@ -3595,8 +3595,8 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
35953595 GET_I64_FROM_ADDR ((uint32 * )global_addr ));
35963596 HANDLE_OP_END ();
35973597 }
3598- #if WASM_ENABLE_SIMDE != 0
3599- HANDLE_OP (WASM_OP_GET_GLOBAL_128 )
3598+ #if WASM_ENABLE_SIMD != 0
3599+ HANDLE_OP (WASM_OP_GET_GLOBAL_V128 )
36003600 {
36013601 global_idx = read_uint32 (frame_ip );
36023602 bh_assert (global_idx < module -> e -> global_count );
@@ -3675,7 +3675,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
36753675 HANDLE_OP_END ();
36763676 }
36773677#if WASM_ENABLE_SIMDE != 0
3678- HANDLE_OP (WASM_OP_SET_GLOBAL_128 )
3678+ HANDLE_OP (WASM_OP_SET_GLOBAL_V128 )
36793679 {
36803680 global_idx = read_uint32 (frame_ip );
36813681 bh_assert (global_idx < module -> e -> global_count );
@@ -4932,7 +4932,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
49324932
49334933 HANDLE_OP_END ();
49344934 }
4935- #if WASM_ENABLE_SIMDE != 0
4935+ #if WASM_ENABLE_SIMD != 0
49364936 HANDLE_OP (EXT_OP_COPY_STACK_TOP_V128 )
49374937 {
49384938 addr1 = GET_OFFSET ();
@@ -5837,7 +5837,8 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
58375837 {
58385838 uint32 offset , addr ;
58395839 offset = read_uint32 (frame_ip );
5840- addr = POP_I32 ();
5840+ addr = GET_OPERAND (uint32 , I32 , 0 );
5841+ frame_ip += 2 ;
58415842 addr_ret = GET_OFFSET ();
58425843 CHECK_MEMORY_OVERFLOW (16 );
58435844 PUT_V128_TO_ADDR (frame_lp + addr_ret , LOAD_V128 (maddr ));
@@ -5850,15 +5851,14 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
58505851 addr = GET_OPERAND(uint32, I32, 0); \
58515852 frame_ip += 2; \
58525853 addr_ret = GET_OFFSET(); \
5853- CHECK_MEMORY_OVERFLOW(4); \
5854+ CHECK_MEMORY_OVERFLOW(16); \
58545855 \
58555856 simde_v128_t simde_result = simde_func(maddr); \
58565857 \
58575858 V128 result; \
58585859 SIMDE_V128_TO_SIMD_V128(simde_result, result); \
58595860 PUT_V128_TO_ADDR(frame_lp + addr_ret, result); \
58605861 \
5861- break; \
58625862 } while (0)
58635863 case SIMD_v128_load8x8_s :
58645864 {
@@ -5936,7 +5936,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
59365936 offset += base ;
59375937 addr = GET_OPERAND (uint32 , I32 , 0 );
59385938
5939- CHECK_MEMORY_OVERFLOW (4 );
5939+ CHECK_MEMORY_OVERFLOW (16 );
59405940 STORE_V128 (maddr , data );
59415941 break ;
59425942 }
0 commit comments