forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Os_print-stack-ir.txt
85 lines (81 loc) · 1.61 KB
/
Os_print-stack-ir.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(module
(type $i32_=>_i32 (func (param i32) (result i32)))
(export "stacky-help" (func $stacky-help))
(func $stacky-help (param $0 i32) (result i32)
i32.const 0
call $stacky-help
i32.const 1
call $stacky-help
i32.const 2
call $stacky-help
drop
i32.eqz
i32.add
)
)
(module
(type $i32_=>_i32 (func (param i32) (result i32)))
(export "stacky-help" (func $stacky-help))
(func $stacky-help (; has Stack IR ;) (param $0 i32) (result i32)
(i32.add
(call $stacky-help
(i32.const 0)
)
(block (result i32)
(local.set $0
(call $stacky-help
(i32.const 1)
)
)
(drop
(call $stacky-help
(i32.const 2)
)
)
(i32.eqz
(local.get $0)
)
)
)
)
)
(module
(type $none_=>_i32 (func (result i32)))
(type $none_=>_i64 (func (result i64)))
(type $none_=>_f32 (func (result f32)))
(type $none_=>_f64 (func (result f64)))
(export "ppi32" (func $0))
(export "ppi64" (func $1))
(export "ppf32" (func $2))
(export "ppf64" (func $3))
(func $0 (result i32)
)
(func $1 (result i64)
)
(func $2 (result f32)
)
(func $3 (result f64)
)
)
(module
(type $none_=>_i32 (func (result i32)))
(type $none_=>_i64 (func (result i64)))
(type $none_=>_f32 (func (result f32)))
(type $none_=>_f64 (func (result f64)))
(export "ppi32" (func $0))
(export "ppi64" (func $1))
(export "ppf32" (func $2))
(export "ppf64" (func $3))
(func $0 (; has Stack IR ;) (result i32)
(i32.pop)
)
(func $1 (; has Stack IR ;) (result i64)
(i64.pop)
)
(func $2 (; has Stack IR ;) (result f32)
(f32.pop)
)
(func $3 (; has Stack IR ;) (result f64)
(f64.pop)
)
)