summaryrefslogtreecommitdiff
path: root/test/dump/break-loop-inner-expr.txt
blob: 199cade4dec3bea555150b45d8567dd7a664213a (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
;;; FLAGS: -dv
(module
  (func (result i32)
    (loop $exit $cont
      (if (i32.const 1)
        (break $cont))
      (if (i32.const 3)
        (break $exit (i32.const 4)))
      (i32.const 5))))
(;; STDOUT ;;;
0000000: 01                                         ; WASM_SECTION_SIGNATURES
0000001: 01                                         ; num signatures
; signature 0
0000002: 00                                         ; num params
0000003: 01                                         ; 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: 02                                         ; OPCODE_LOOP
000000c: 03                                         ; num expressions
000000d: 03                                         ; OPCODE_IF
000000e: 09                                         ; OPCODE_I8_CONST
000000f: 01                                         ; u8 literal
0000010: 06                                         ; OPCODE_BR
0000011: 00                                         ; break depth
0000012: 00                                         ; OPCODE_NOP
0000013: 03                                         ; OPCODE_IF
0000014: 09                                         ; OPCODE_I8_CONST
0000015: 03                                         ; u8 literal
0000016: 06                                         ; OPCODE_BR
0000017: 01                                         ; break depth
0000018: 09                                         ; OPCODE_I8_CONST
0000019: 04                                         ; u8 literal
000001a: 09                                         ; OPCODE_I8_CONST
000001b: 05                                         ; u8 literal
0000009: 1100                                       ; FIXUP func body size
000001c: 06                                         ; WASM_SECTION_END
;;; STDOUT ;;)