From cdab6b0a2fe498a91f3f247641ccaaa6b1bac019 Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Sat, 6 Sep 2025 07:15:55 +0400 Subject: [PATCH] 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. --- Libraries/LibWasm/Opcode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWasm/Opcode.h b/Libraries/LibWasm/Opcode.h index 9a6a47ffe3b..1f65f06b1c5 100644 --- a/Libraries/LibWasm/Opcode.h +++ b/Libraries/LibWasm/Opcode.h @@ -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) \