Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/local_tee.wast/0.print

raw
1 (module
2 (type $sig (;0;) (func (param i32 i32 i32) (result i32)))
3 (type (;1;) (func (result i32)))
4 (type (;2;) (func (result i64)))
5 (type (;3;) (func (result f32)))
6 (type (;4;) (func (result f64)))
7 (type (;5;) (func (param i32) (result i32)))
8 (type (;6;) (func (param i64) (result i64)))
9 (type (;7;) (func (param f32) (result f32)))
10 (type (;8;) (func (param f64) (result f64)))
11 (type (;9;) (func (param i64 f32 f64 i32 i32)))
12 (type (;10;) (func (param i64 f32 f64 i32 i32) (result i64)))
13 (type (;11;) (func (param i64 f32 f64 i32 i32) (result f64)))
14 (type (;12;) (func))
15 (type (;13;) (func (param i32)))
16 (type (;14;) (func (param i32 i32) (result i32)))
17 (type (;15;) (func (param i64) (result i32)))
18 (table (;0;) 1 1 funcref)
19 (memory (;0;) 1)
20 (global $g (;0;) (mut i32) i32.const 0)
21 (export "type-local-i32" (func 0))
22 (export "type-local-i64" (func 1))
23 (export "type-local-f32" (func 2))
24 (export "type-local-f64" (func 3))
25 (export "type-param-i32" (func 4))
26 (export "type-param-i64" (func 5))
27 (export "type-param-f32" (func 6))
28 (export "type-param-f64" (func 7))
29 (export "type-mixed" (func 8))
30 (export "write" (func 9))
31 (export "result" (func 10))
32 (export "as-block-first" (func 12))
33 (export "as-block-mid" (func 13))
34 (export "as-block-last" (func 14))
35 (export "as-loop-first" (func 15))
36 (export "as-loop-mid" (func 16))
37 (export "as-loop-last" (func 17))
38 (export "as-br-value" (func 18))
39 (export "as-br_if-cond" (func 19))
40 (export "as-br_if-value" (func 20))
41 (export "as-br_if-value-cond" (func 21))
42 (export "as-br_table-index" (func 22))
43 (export "as-br_table-value" (func 23))
44 (export "as-br_table-value-index" (func 24))
45 (export "as-return-value" (func 25))
46 (export "as-if-cond" (func 26))
47 (export "as-if-then" (func 27))
48 (export "as-if-else" (func 28))
49 (export "as-select-first" (func 29))
50 (export "as-select-second" (func 30))
51 (export "as-select-cond" (func 31))
52 (export "as-call-first" (func 33))
53 (export "as-call-mid" (func 34))
54 (export "as-call-last" (func 35))
55 (export "as-call_indirect-first" (func 36))
56 (export "as-call_indirect-mid" (func 37))
57 (export "as-call_indirect-last" (func 38))
58 (export "as-call_indirect-index" (func 39))
59 (export "as-local.set-value" (func 40))
60 (export "as-local.tee-value" (func 41))
61 (export "as-global.set-value" (func 42))
62 (export "as-load-address" (func 43))
63 (export "as-loadN-address" (func 44))
64 (export "as-store-address" (func 45))
65 (export "as-store-value" (func 46))
66 (export "as-storeN-address" (func 47))
67 (export "as-storeN-value" (func 48))
68 (export "as-unary-operand" (func 49))
69 (export "as-binary-left" (func 50))
70 (export "as-binary-right" (func 51))
71 (export "as-test-operand" (func 52))
72 (export "as-compare-left" (func 53))
73 (export "as-compare-right" (func 54))
74 (export "as-convert-operand" (func 55))
75 (export "as-memory.grow-size" (func 56))
76 (elem (;0;) (table 0) (i32.const 0) func $f)
77 (func (;0;) (type 1) (result i32)
78 (local i32)
79 i32.const 0
80 local.tee 0
81 )
82 (func (;1;) (type 2) (result i64)
83 (local i64)
84 i64.const 0
85 local.tee 0
86 )
87 (func (;2;) (type 3) (result f32)
88 (local f32)
89 f32.const 0x0p+0 (;=0;)
90 local.tee 0
91 )
92 (func (;3;) (type 4) (result f64)
93 (local f64)
94 f64.const 0x0p+0 (;=0;)
95 local.tee 0
96 )
97 (func (;4;) (type 5) (param i32) (result i32)
98 i32.const 10
99 local.tee 0
100 )
101 (func (;5;) (type 6) (param i64) (result i64)
102 i64.const 11
103 local.tee 0
104 )
105 (func (;6;) (type 7) (param f32) (result f32)
106 f32.const 0x1.633334p+3 (;=11.1;)
107 local.tee 0
108 )
109 (func (;7;) (type 8) (param f64) (result f64)
110 f64.const 0x1.8666666666666p+3 (;=12.2;)
111 local.tee 0
112 )
113 (func (;8;) (type 9) (param i64 f32 f64 i32 i32)
114 (local f32 i64 i64 f64)
115 i64.const 0
116 local.tee 0
117 i64.eqz
118 drop
119 f32.const 0x0p+0 (;=0;)
120 local.tee 1
121 f32.neg
122 drop
123 f64.const 0x0p+0 (;=0;)
124 local.tee 2
125 f64.neg
126 drop
127 i32.const 0
128 local.tee 3
129 i32.eqz
130 drop
131 i32.const 0
132 local.tee 4
133 i32.eqz
134 drop
135 f32.const 0x0p+0 (;=0;)
136 local.tee 5
137 f32.neg
138 drop
139 i64.const 0
140 local.tee 6
141 i64.eqz
142 drop
143 i64.const 0
144 local.tee 7
145 i64.eqz
146 drop
147 f64.const 0x0p+0 (;=0;)
148 local.tee 8
149 f64.neg
150 drop
151 )
152 (func (;9;) (type 10) (param i64 f32 f64 i32 i32) (result i64)
153 (local f32 i64 i64 f64)
154 f32.const -0x1.333334p-2 (;=-0.3;)
155 local.tee 1
156 drop
157 i32.const 40
158 local.tee 3
159 drop
160 i32.const -7
161 local.tee 4
162 drop
163 f32.const 0x1.6p+2 (;=5.5;)
164 local.tee 5
165 drop
166 i64.const 6
167 local.tee 6
168 drop
169 f64.const 0x1p+3 (;=8;)
170 local.tee 8
171 drop
172 local.get 0
173 f64.convert_i64_u
174 local.get 1
175 f64.promote_f32
176 local.get 2
177 local.get 3
178 f64.convert_i32_u
179 local.get 4
180 f64.convert_i32_s
181 local.get 5
182 f64.promote_f32
183 local.get 6
184 f64.convert_i64_u
185 local.get 7
186 f64.convert_i64_u
187 local.get 8
188 f64.add
189 f64.add
190 f64.add
191 f64.add
192 f64.add
193 f64.add
194 f64.add
195 f64.add
196 i64.trunc_f64_s
197 )
198 (func (;10;) (type 11) (param i64 f32 f64 i32 i32) (result f64)
199 (local f32 i64 i64 f64)
200 i64.const 1
201 local.tee 0
202 f64.convert_i64_u
203 f32.const 0x1p+1 (;=2;)
204 local.tee 1
205 f64.promote_f32
206 f64.const 0x1.a666666666666p+1 (;=3.3;)
207 local.tee 2
208 i32.const 4
209 local.tee 3
210 f64.convert_i32_u
211 i32.const 5
212 local.tee 4
213 f64.convert_i32_s
214 f32.const 0x1.6p+2 (;=5.5;)
215 local.tee 5
216 f64.promote_f32
217 i64.const 6
218 local.tee 6
219 f64.convert_i64_u
220 i64.const 0
221 local.tee 7
222 f64.convert_i64_u
223 f64.const 0x1p+3 (;=8;)
224 local.tee 8
225 f64.add
226 f64.add
227 f64.add
228 f64.add
229 f64.add
230 f64.add
231 f64.add
232 f64.add
233 )
234 (func $dummy (;11;) (type 12))
235 (func (;12;) (type 5) (param i32) (result i32)
236 block (result i32) ;; label = @1
237 i32.const 1
238 local.tee 0
239 call $dummy
240 end
241 )
242 (func (;13;) (type 5) (param i32) (result i32)
243 block (result i32) ;; label = @1
244 call $dummy
245 i32.const 1
246 local.tee 0
247 call $dummy
248 end
249 )
250 (func (;14;) (type 5) (param i32) (result i32)
251 block (result i32) ;; label = @1
252 call $dummy
253 call $dummy
254 i32.const 1
255 local.tee 0
256 end
257 )
258 (func (;15;) (type 5) (param i32) (result i32)
259 loop (result i32) ;; label = @1
260 i32.const 3
261 local.tee 0
262 call $dummy
263 end
264 )
265 (func (;16;) (type 5) (param i32) (result i32)
266 loop (result i32) ;; label = @1
267 call $dummy
268 i32.const 4
269 local.tee 0
270 call $dummy
271 end
272 )
273 (func (;17;) (type 5) (param i32) (result i32)
274 loop (result i32) ;; label = @1
275 call $dummy
276 call $dummy
277 i32.const 5
278 local.tee 0
279 end
280 )
281 (func (;18;) (type 5) (param i32) (result i32)
282 block (result i32) ;; label = @1
283 i32.const 9
284 local.tee 0
285 br 0 (;@1;)
286 end
287 )
288 (func (;19;) (type 13) (param i32)
289 block ;; label = @1
290 i32.const 1
291 local.tee 0
292 br_if 0 (;@1;)
293 end
294 )
295 (func (;20;) (type 5) (param i32) (result i32)
296 block (result i32) ;; label = @1
297 i32.const 8
298 local.tee 0
299 i32.const 1
300 br_if 0 (;@1;)
301 drop
302 i32.const 7
303 end
304 )
305 (func (;21;) (type 5) (param i32) (result i32)
306 block (result i32) ;; label = @1
307 i32.const 6
308 i32.const 9
309 local.tee 0
310 br_if 0 (;@1;)
311 drop
312 i32.const 7
313 end
314 )
315 (func (;22;) (type 13) (param i32)
316 block ;; label = @1
317 i32.const 0
318 local.tee 0
319 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
320 end
321 )
322 (func (;23;) (type 5) (param i32) (result i32)
323 block (result i32) ;; label = @1
324 i32.const 10
325 local.tee 0
326 i32.const 1
327 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
328 i32.const 7
329 end
330 )
331 (func (;24;) (type 5) (param i32) (result i32)
332 block (result i32) ;; label = @1
333 i32.const 6
334 i32.const 11
335 local.tee 0
336 br_table 0 (;@1;) 0 (;@1;)
337 i32.const 7
338 end
339 )
340 (func (;25;) (type 5) (param i32) (result i32)
341 i32.const 7
342 local.tee 0
343 return
344 )
345 (func (;26;) (type 5) (param i32) (result i32)
346 i32.const 2
347 local.tee 0
348 if (result i32) ;; label = @1
349 i32.const 0
350 else
351 i32.const 1
352 end
353 )
354 (func (;27;) (type 5) (param i32) (result i32)
355 local.get 0
356 if (result i32) ;; label = @1
357 i32.const 3
358 local.tee 0
359 else
360 local.get 0
361 end
362 )
363 (func (;28;) (type 5) (param i32) (result i32)
364 local.get 0
365 if (result i32) ;; label = @1
366 local.get 0
367 else
368 i32.const 4
369 local.tee 0
370 end
371 )
372 (func (;29;) (type 14) (param i32 i32) (result i32)
373 i32.const 5
374 local.tee 0
375 local.get 0
376 local.get 1
377 select
378 )
379 (func (;30;) (type 14) (param i32 i32) (result i32)
380 local.get 0
381 i32.const 6
382 local.tee 0
383 local.get 1
384 select
385 )
386 (func (;31;) (type 5) (param i32) (result i32)
387 i32.const 0
388 i32.const 1
389 i32.const 7
390 local.tee 0
391 select
392 )
393 (func $f (;32;) (type $sig) (param i32 i32 i32) (result i32)
394 i32.const -1
395 )
396 (func (;33;) (type 5) (param i32) (result i32)
397 i32.const 12
398 local.tee 0
399 i32.const 2
400 i32.const 3
401 call $f
402 )
403 (func (;34;) (type 5) (param i32) (result i32)
404 i32.const 1
405 i32.const 13
406 local.tee 0
407 i32.const 3
408 call $f
409 )
410 (func (;35;) (type 5) (param i32) (result i32)
411 i32.const 1
412 i32.const 2
413 i32.const 14
414 local.tee 0
415 call $f
416 )
417 (func (;36;) (type 5) (param i32) (result i32)
418 i32.const 1
419 local.tee 0
420 i32.const 2
421 i32.const 3
422 i32.const 0
423 call_indirect (type $sig)
424 )
425 (func (;37;) (type 5) (param i32) (result i32)
426 i32.const 1
427 i32.const 2
428 local.tee 0
429 i32.const 3
430 i32.const 0
431 call_indirect (type $sig)
432 )
433 (func (;38;) (type 5) (param i32) (result i32)
434 i32.const 1
435 i32.const 2
436 i32.const 3
437 local.tee 0
438 i32.const 0
439 call_indirect (type $sig)
440 )
441 (func (;39;) (type 5) (param i32) (result i32)
442 i32.const 1
443 i32.const 2
444 i32.const 3
445 i32.const 0
446 local.tee 0
447 call_indirect (type $sig)
448 )
449 (func (;40;) (type 12)
450 (local i32)
451 i32.const 1
452 local.tee 0
453 local.set 0
454 )
455 (func (;41;) (type 5) (param i32) (result i32)
456 i32.const 1
457 local.tee 0
458 local.tee 0
459 )
460 (func (;42;) (type 12)
461 (local i32)
462 i32.const 1
463 local.tee 0
464 global.set $g
465 )
466 (func (;43;) (type 5) (param i32) (result i32)
467 i32.const 1
468 local.tee 0
469 i32.load
470 )
471 (func (;44;) (type 5) (param i32) (result i32)
472 i32.const 3
473 local.tee 0
474 i32.load8_s
475 )
476 (func (;45;) (type 13) (param i32)
477 i32.const 30
478 local.tee 0
479 i32.const 7
480 i32.store
481 )
482 (func (;46;) (type 13) (param i32)
483 i32.const 2
484 i32.const 1
485 local.tee 0
486 i32.store
487 )
488 (func (;47;) (type 13) (param i32)
489 i32.const 1
490 local.tee 0
491 i32.const 7
492 i32.store8
493 )
494 (func (;48;) (type 13) (param i32)
495 i32.const 2
496 i32.const 1
497 local.tee 0
498 i32.store16
499 )
500 (func (;49;) (type 7) (param f32) (result f32)
501 f32.const nan:0xf1e2 (;=NaN;)
502 local.tee 0
503 f32.neg
504 )
505 (func (;50;) (type 5) (param i32) (result i32)
506 i32.const 3
507 local.tee 0
508 i32.const 10
509 i32.add
510 )
511 (func (;51;) (type 5) (param i32) (result i32)
512 i32.const 10
513 i32.const 4
514 local.tee 0
515 i32.sub
516 )
517 (func (;52;) (type 5) (param i32) (result i32)
518 i32.const 0
519 local.tee 0
520 i32.eqz
521 )
522 (func (;53;) (type 5) (param i32) (result i32)
523 i32.const 43
524 local.tee 0
525 i32.const 10
526 i32.le_s
527 )
528 (func (;54;) (type 5) (param i32) (result i32)
529 i32.const 10
530 i32.const 42
531 local.tee 0
532 i32.ne
533 )
534 (func (;55;) (type 15) (param i64) (result i32)
535 i64.const 41
536 local.tee 0
537 i32.wrap_i64
538 )
539 (func (;56;) (type 5) (param i32) (result i32)
540 i32.const 40
541 local.tee 0
542 memory.grow
543 )
544 )