aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-12-22 20:41:27 +0000
committerMichael Williamson <mike@zwobble.org>2024-12-22 20:41:27 +0000
commit6dd0bb83ea290fcf30f554185d18928e93219180 (patch)
tree89782a4d69f89e17a23c65d5638b5589730362c2
parentc9b5c7bd986f15114df7dcfc405c4eca11cbf25f (diff)
Add missing snapshot
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatInstructionsTests]/[method:canSerializeBlockTypeMultipleValues(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected38
1 files changed, 38 insertions, 0 deletions
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 <f>
+Code[1]:
+ - func[0] size=22 <f>
+Custom:
+ - name: "linking"
+ - symbol table [count=1]
+ - 0: F <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] <f>
+
+Code Disassembly:
+
+00002b func[0] <f>:
+ 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