blob: 155b26f1cfc29a408e2faa492d8ac6c533f8afc6 (
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
|
;;; TOOL: run-interp
(module
(func (export "block-multi-result") (result i32)
block (result i32 i32)
i32.const 1
i32.const 2
end
i32.add
)
(func (export "block-multi-result-br") (result i32)
block $b (result i32 i32)
block
i32.const 15
i32.const 7
br $b
end
i32.const -1
i32.const -2
end
drop)
(func (export "block-param") (result f32)
i32.const 2
block (param i32) (result f32)
f32.convert_i32_s
end
)
)
(;; STDOUT ;;;
block-multi-result() => i32:3
block-multi-result-br() => i32:15
block-param() => f32:2.000000
;;; STDOUT ;;)
|