summaryrefslogtreecommitdiff
path: root/test/dump/break-block.txt
blob: 070eb81c83dc16fcfb57d05b9d7339e8b52f438e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;; FLAGS: -dv
(module
  (func                     ;; spec  v8
    (block $outer           ;; 2     4
      (loop                 ;; 1     2 (3 is exit)
        (block              ;;       1
          (i32.const 0)
          (block $inner     ;; 0     0
            (break)
            (break 0)
            (break 1)
            (break 2)))))))
(;; STDOUT ;;;
0000000: 01                                         ; WASM_SECTION_SIGNATURES
0000001: 01                                         ; num signatures
; signature 0
0000002: 00                                         ; num params
0000003: 00                                         ; result_type
0000004: 02                                         ; WASM_SECTION_FUNCTIONS
0000005: 01                                         ; num functions
; function 0
0000006: 00                                         ; func flags
0000007: 0000                                       ; func signature index
0000009: 0000                                       ; func body size
000000b: 01                                         ; OPCODE_BLOCK
000000c: 01                                         ; num expressions
000000d: 02                                         ; OPCODE_LOOP
000000e: 01                                         ; num expressions
000000f: 01                                         ; OPCODE_BLOCK
0000010: 02                                         ; num expressions
0000011: 09                                         ; OPCODE_I8_CONST
0000012: 00                                         ; u8 literal
0000013: 01                                         ; OPCODE_BLOCK
0000014: 04                                         ; num expressions
0000015: 06                                         ; OPCODE_BR
0000016: 00                                         ; break depth
0000017: 00                                         ; OPCODE_NOP
0000018: 06                                         ; OPCODE_BR
0000019: 00                                         ; break depth
000001a: 00                                         ; OPCODE_NOP
000001b: 06                                         ; OPCODE_BR
000001c: 02                                         ; break depth
000001d: 00                                         ; OPCODE_NOP
000001e: 06                                         ; OPCODE_BR
000001f: 04                                         ; break depth
0000020: 00                                         ; OPCODE_NOP
0000009: 1600                                       ; FIXUP func body size
0000021: 06                                         ; WASM_SECTION_END
;;; STDOUT ;;)