summaryrefslogtreecommitdiff
path: root/test/dump/if.txt
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-09-30 16:57:12 -0700
committerBen Smith <binji@chromium.org>2016-09-30 16:57:12 -0700
commitc3d962bb38507a1ecd350d84bc68ad2a8f1317a9 (patch)
tree174fe45875b97b64c468bdf37933685f966245a0 /test/dump/if.txt
parent4543590fb7c7043bce4c28e405d049f07892c4db (diff)
downloadwabt-c3d962bb38507a1ecd350d84bc68ad2a8f1317a9.tar.gz
wabt-c3d962bb38507a1ecd350d84bc68ad2a8f1317a9.tar.bz2
wabt-c3d962bb38507a1ecd350d84bc68ad2a8f1317a9.zip
append END opcode at end of function
This fixes #132.
Diffstat (limited to 'test/dump/if.txt')
-rw-r--r--test/dump/if.txt34
1 files changed, 18 insertions, 16 deletions
diff --git a/test/dump/if.txt b/test/dump/if.txt
index ec3055d3..ebfe0501 100644
--- a/test/dump/if.txt
+++ b/test/dump/if.txt
@@ -54,23 +54,25 @@
0000029: 0000 0040 ; f32 literal
000002d: 0f ; OPCODE_END
000002e: 0b ; OPCODE_DROP
-0000016: 18 ; FIXUP func body size
+000002f: 0f ; OPCODE_END
+0000016: 19 ; FIXUP func body size
; function body 1
-000002f: 00 ; func body size (guess)
-0000030: 00 ; local decl count
-0000031: 10 ; OPCODE_I32_CONST
-0000032: 01 ; i32 literal
-0000033: 03 ; OPCODE_IF
-0000034: 00 ; WASM_TYPE_VOID
-0000035: 09 ; OPCODE_RETURN
-0000036: 04 ; OPCODE_ELSE
-0000037: 09 ; OPCODE_RETURN
-0000038: 0f ; OPCODE_END
-000002f: 09 ; FIXUP func body size
-0000014: 24 ; FIXUP section size
+0000030: 00 ; func body size (guess)
+0000031: 00 ; local decl count
+0000032: 10 ; OPCODE_I32_CONST
+0000033: 01 ; i32 literal
+0000034: 03 ; OPCODE_IF
+0000035: 00 ; WASM_TYPE_VOID
+0000036: 09 ; OPCODE_RETURN
+0000037: 04 ; OPCODE_ELSE
+0000038: 09 ; OPCODE_RETURN
+0000039: 0f ; OPCODE_END
+000003a: 0f ; OPCODE_END
+0000030: 0a ; FIXUP func body size
+0000014: 26 ; FIXUP section size
;; dump
0000000: 0061 736d 0c00 0000 0104 0140 0000 0303
-0000010: 0200 000a 2402 1800 1001 0300 0a0f 1000
-0000020: 0303 1300 0080 3f04 1300 0000 400f 0b09
-0000030: 0010 0103 0009 0409 0f
+0000010: 0200 000a 2602 1900 1001 0300 0a0f 1000
+0000020: 0303 1300 0080 3f04 1300 0000 400f 0b0f
+0000030: 0a00 1001 0300 0904 090f 0f
;;; STDOUT ;;)