mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-10 11:03:40 +00:00
Fix replacement value not being correct (#3919)
This commit is contained in:
parent
fbbcd08b3c
commit
c3601cc4bd
|
@ -15217,17 +15217,27 @@ re_scan:
|
||||||
error_buf_size)) {
|
error_buf_size)) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
#if WASM_ENABLE_FAST_INTERP != 0
|
||||||
|
emit_byte(loader_ctx, lane);
|
||||||
|
#endif
|
||||||
if (replace[opcode1 - SIMD_i8x16_extract_lane_s]) {
|
if (replace[opcode1 - SIMD_i8x16_extract_lane_s]) {
|
||||||
|
#if WASM_ENABLE_FAST_INTERP != 0
|
||||||
|
if (!(wasm_loader_pop_frame_ref_offset(
|
||||||
|
loader_ctx,
|
||||||
|
replace[opcode1
|
||||||
|
- SIMD_i8x16_extract_lane_s],
|
||||||
|
error_buf, error_buf_size)))
|
||||||
|
goto fail;
|
||||||
|
#else
|
||||||
if (!(wasm_loader_pop_frame_ref(
|
if (!(wasm_loader_pop_frame_ref(
|
||||||
loader_ctx,
|
loader_ctx,
|
||||||
replace[opcode1
|
replace[opcode1
|
||||||
- SIMD_i8x16_extract_lane_s],
|
- SIMD_i8x16_extract_lane_s],
|
||||||
error_buf, error_buf_size)))
|
error_buf, error_buf_size)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
#endif /* end of WASM_ENABLE_FAST_INTERP != 0 */
|
||||||
}
|
}
|
||||||
#if WASM_ENABLE_FAST_INTERP != 0
|
|
||||||
emit_byte(loader_ctx, lane);
|
|
||||||
#endif
|
|
||||||
POP_AND_PUSH(
|
POP_AND_PUSH(
|
||||||
VALUE_TYPE_V128,
|
VALUE_TYPE_V128,
|
||||||
push_type[opcode1 - SIMD_i8x16_extract_lane_s]);
|
push_type[opcode1 - SIMD_i8x16_extract_lane_s]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user