Debian Codegraph @

tests/cli/folding/fold-local-getset.wast

raw
1 ;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots %
2
3 ;;; WABT fold-local-getset.wat test (Copyright 2016- WebAssembly Community Group participants)
4 (module
5 (func $fold-local-get (result f32)
6 (local f32 f32 f64 f64)
7 local.get 0
8 local.get 1
9 f32.add
10 local.get 2
11 local.get 3
12 f64.add
13 f32.demote_f64
14 f32.add)
15
16 (func $fold-local-set
17 (local i64 i32)
18 i64.const 1
19 i64.const 2
20 i64.const 3
21 i64.xor
22 i64.xor
23 local.set 0
24 i32.const 4
25 local.set 1)
26
27 (func $fold-local-tee (result i32)
28 (local i32 i32)
29 i32.const 1
30 local.tee 0
31 i32.const 2
32 local.tee 1
33 i32.add)
34 )