| ... | ... | @@ -675,12 +675,10 @@ fn buildOpcode(args: OpcodeBuildArguments) std.wasm.Opcode { |
| 675 | 675 | test "Wasm - buildOpcode" { |
| 676 | 676 | // Make sure buildOpcode is referenced, and test some examples |
| 677 | 677 | const i32_const = buildOpcode(.{ .op = .@"const", .valtype1 = .i32 }); |
| 678 | | const end = buildOpcode(.{ .op = .end }); |
| 679 | 678 | const i64_extend32_s = buildOpcode(.{ .op = .extend, .valtype1 = .i64, .width = 32, .signedness = .signed }); |
| 680 | 679 | const f64_reinterpret_i64 = buildOpcode(.{ .op = .reinterpret, .valtype1 = .f64, .valtype2 = .i64 }); |
| 681 | 680 | |
| 682 | 681 | try testing.expectEqual(@as(std.wasm.Opcode, .i32_const), i32_const); |
| 683 | | try testing.expectEqual(@as(std.wasm.Opcode, .end), end); |
| 684 | 682 | try testing.expectEqual(@as(std.wasm.Opcode, .i64_extend32_s), i64_extend32_s); |
| 685 | 683 | try testing.expectEqual(@as(std.wasm.Opcode, .f64_reinterpret_i64), f64_reinterpret_i64); |
| 686 | 684 | } |