/
test.expected
99 lines (99 loc) · 1.78 KB
/
test.expected
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
(module
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $none_=>_none (func))
(memory $0 1)
(table $table 1 1 funcref)
(elem (i32.const 0) $adder)
(global $max_int64 i64 (i64.const 9223372036854775807))
(global $test_float64_bits f64 (f64.const 1.23))
(export "adder" (func $adder))
(export "memory" (memory $0))
(start $start)
(func $adder (param $0 i32) (param $1 i32) (result i32)
(block $add (result i32)
(if
(i32.const 0)
(unreachable)
)
(i32.add
(select
(local.get $0)
(i32.load8_s
(local.get $1)
)
(i32.const 1)
)
(local.get $1)
)
)
)
(func $start
(drop
(call_indirect (type $i32_i32_=>_i32)
(i32.const 3)
(i32.const 5)
(i32.const 0)
)
)
)
)
(module
(type $none_=>_none (func))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(memory $0 1)
(table $table 1 1 funcref)
(elem (i32.const 0) $adder)
(export "adder" (func $adder))
(export "memory" (memory $0))
(start $start)
(func $adder (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(select
(local.get $0)
(i32.load8_s
(local.get $1)
)
(i32.const 1)
)
(local.get $1)
)
)
(func $start (; has Stack IR ;)
(drop
(call $adder
(i32.const 3)
(i32.const 5)
)
)
)
)
(module
(type $none_=>_none (func))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(memory $0 1)
(table $0 1 1 funcref)
(elem (i32.const 0) $0)
(export "adder" (func $0))
(export "memory" (memory $0))
(start $1)
(func $0 (param $0 i32) (param $1 i32) (result i32)
(i32.add
(select
(local.get $0)
(i32.load8_s
(local.get $1)
)
(i32.const 1)
)
(local.get $1)
)
)
(func $1
(drop
(call $0
(i32.const 3)
(i32.const 5)
)
)
)
)