From 6dd0bb83ea290fcf30f554185d18928e93219180 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 22 Dec 2024 20:41:27 +0000 Subject: Add missing snapshot --- ...mpiler.testing.snapshots.Snapshotter)].expected | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeBlockTypeMultipleValues(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeBlockTypeMultipleValues(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeBlockTypeMultipleValues(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..8fdf41be --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeBlockTypeMultipleValues(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,38 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[2]: + - type[0] () -> (i64, i32) + - type[1] () -> nil +Function[1]: + - func[0] sig=1 +Code[1]: + - func[0] size=22 +Custom: + - name: "linking" + - symbol table [count=1] + - 0: F func=0 [ binding=global vis=default ] +Custom: + - name: "reloc.CODE" + - relocations for section: 2 (Code) [1] + - R_WASM_TYPE_INDEX_LEB offset=0x00000a(file=0x00002f) type=0 +Custom: + - name: "name" + - func[0] + +Code Disassembly: + +00002b func[0] : + 00002c: 41 00 | i32.const 0 + 00002e: 04 80 80 80 80 00 | if type[0] + 000034: 42 00 | i64.const 0 + 000036: 41 00 | i32.const 0 + 000038: 05 | else + 000039: 42 01 | i64.const 1 + 00003b: 41 01 | i32.const 1 + 00003d: 0b | end + 00003e: 1a | drop + 00003f: 1a | drop + 000040: 0b | end \ No newline at end of file -- cgit v1.2.3