LibWasm: Fix pushes for i16x8.replace_lane in Opcode table

The opcode entry declared i16x8_replace_lane with pushes = -1, but
replace_lane pops 2 (vector, lane value) and pushes 1 result vector.
Set pushes to 1 to match the other replace_lane opcodes.
This commit is contained in:
Pavel Shliak 2025-09-06 07:15:55 +04:00 committed by Ali Mohammad Pur
commit cdab6b0a2f
Notes: github-actions[bot] 2025-09-06 04:07:41 +00:00

View file

@ -246,7 +246,7 @@ namespace Instructions {
M(i8x16_replace_lane, 0xfd00000000000017ull, 2, 1) \
M(i16x8_extract_lane_s, 0xfd00000000000018ull, 1, 1) \
M(i16x8_extract_lane_u, 0xfd00000000000019ull, 1, 1) \
M(i16x8_replace_lane, 0xfd0000000000001aull, 2, -1) \
M(i16x8_replace_lane, 0xfd0000000000001aull, 2, 1) \
M(i32x4_extract_lane, 0xfd0000000000001bull, 1, 1) \
M(i32x4_replace_lane, 0xfd0000000000001cull, 2, 1) \
M(i64x2_extract_lane, 0xfd0000000000001dull, 1, 1) \