forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
precompute_all-features.txt
327 lines (327 loc) · 4.86 KB
/
precompute_all-features.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
(module
(type $none_=>_none (func))
(type $none_=>_i32 (func (result i32)))
(type $none_=>_f64 (func (result f64)))
(type $none_=>_v128 (func (result v128)))
(type $i32_=>_none (func (param i32)))
(type $none_=>_i32_i64 (func (result i32 i64)))
(type $none_=>_externref (func (result externref)))
(memory $0 512 512)
(data (i32.const 0) "passive")
(global $global i32 (i32.const 1))
(global $global-mut (mut i32) (i32.const 2))
(event $event$0 (attr 0) (param))
(func $x (param $x i32)
(call $x
(i32.const 2300)
)
(nop)
(drop
(i32.add
(i32.const 1)
(local.get $x)
)
)
(nop)
(nop)
(nop)
(nop)
(loop $in
(br $in)
)
(nop)
(block $c
(nop)
(call $x
(i32.const 4)
)
(br $c)
(br $c)
)
(drop
(block $val (result i32)
(nop)
(call $x
(i32.const 4)
)
(br $val
(i32.const 101)
)
(br $val
(i32.const 102)
)
)
)
(nop)
(drop
(block $d0 (result i32)
(call $x
(i32.const 5)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d2 (result i32)
(call $x
(i32.const 6)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d4 (result i32)
(call $x
(i32.const 7)
)
(nop)
(i32.const 2)
)
)
(call $x
(i32.const 2)
)
(call $x
(i32.const 1)
)
(call $x
(i32.const 0)
)
(call $x
(i32.const 0)
)
)
(func $ret (result i32)
(if
(call $ret)
(return
(i32.const 0)
)
)
(if
(call $ret)
(return
(i32.const 1)
)
)
(i32.const 1)
)
(func $noret
(if
(call $ret)
(return)
)
)
(func $refinalize-br-condition-unreachable
(block $label$1
(drop
(br_if $label$1
(unreachable)
)
)
)
)
(func $br_if-condition-is-block-i32-but-unreachable-so-refinalize-tricky
(drop
(block $label$1 (result i32)
(drop
(br_if $label$1
(i32.const 100)
(block $label$3
(unreachable)
)
)
)
(i32.const 0)
)
)
)
(func $reuse-br-value (result f64)
(block $label$0 (result f64)
(i32.store8
(i32.const 1919623207)
(if (result i32)
(i32.const 1)
(block $label$2
(drop
(i64.and
(i64.trunc_f32_u
(f32.const 70847791997969805621592064)
)
(i64.const 729618461987467893)
)
)
(br $label$0
(f64.const 6.134856208230095e-154)
)
)
(i32.load offset=3 align=2
(i32.const 169901344)
)
)
)
(f64.const 4776014875438170098655851e156)
)
)
(func $refinalize-two-breaks-one-unreachable
(drop
(block $label$0 (result i64)
(block
(select
(i64.const 1)
(block $block
(global.set $global-mut
(i32.const 1)
)
(br $label$0
(i64.const -22)
)
)
(i32.const 0)
)
(drop
(i32.const 1)
)
)
)
)
)
(func $one-break-value-and-it-is-unreachable (result f64)
(local $var$0 i32)
(block $label$6
(block
(unreachable)
(drop
(i32.const 0)
)
)
)
)
(func $global-notprecomputable (result i32)
(i32.add
(i32.const 1)
(global.get $global-mut)
)
)
(func $global-precomputable (result i32)
(i32.const 2)
)
(func $global-partiallyprecomputable (result i32)
(i32.sub
(i32.add
(i32.const 1)
(global.get $global-mut)
)
(i32.const 2)
)
)
(func $no-simd-precompute (result v128)
(i32x4.splat
(i32.const 0)
)
)
(func $no-simd-precompute-if (result v128)
(return
(i32x4.splat
(i32.const 0)
)
)
)
(func $no-memory-init-precompute
(memory.init 0
(i32.const 512)
(i32.const 0)
(i32.const 12)
)
)
(func $no-data-drop-precompute
(data.drop 0)
)
(func $no-memory-copy-precompute
(memory.copy
(i32.const 512)
(i32.const 0)
(i32.const 12)
)
)
(func $no-memory-fill-precompute
(memory.fill
(i32.const 512)
(i32.const 0)
(i32.const 12)
)
)
(func $tuple-precompute (result i32 i64)
(tuple.make
(i32.const 42)
(i64.const 42)
)
)
(func $loop-precompute (result i32)
(i32.const 1)
)
(func $reftype-test (result externref)
(ref.null extern)
)
(func $dummy
(nop)
)
(func $br_reuse_node
(drop
(block $l0 (result f32)
(drop
(block $l1
(global.set $global-mut
(i32.const 1)
)
(br $l0
(f32.const 3.5)
)
)
)
(f32.const 0)
)
)
(drop
(block $l2 (result externref)
(drop
(block $l3
(global.set $global-mut
(i32.const 1)
)
(br $l2
(ref.null extern)
)
)
)
(ref.null extern)
)
)
(drop
(block $l4 (result funcref)
(drop
(block $l5
(global.set $global-mut
(i32.const 1)
)
(br $l4
(ref.func $dummy)
)
)
)
(ref.null func)
)
)
)
(func $unreachable-br_on_exn
(block $label$1
(drop
(loop $label$2
(br $label$2)
)
)
)
)
)