diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-01-07 13:24:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 13:24:58 -0800 |
commit | 7d94900ded8e2e5ce8ef8ee2687528531d8f2a97 (patch) | |
tree | d8bba13d306b0c5ecba384384e602e6cccc83015 /test/passes/simplify-locals-nostructure.wast | |
parent | 6f91af190effd7b8a5969314dd4fb3d2ec540524 (diff) | |
download | binaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.tar.gz binaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.tar.bz2 binaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.zip |
Massive renaming (#1855)
Automated renaming according to
https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329.
Diffstat (limited to 'test/passes/simplify-locals-nostructure.wast')
-rw-r--r-- | test/passes/simplify-locals-nostructure.wast | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/test/passes/simplify-locals-nostructure.wast b/test/passes/simplify-locals-nostructure.wast index c73da359e..9c04b753a 100644 --- a/test/passes/simplify-locals-nostructure.wast +++ b/test/passes/simplify-locals-nostructure.wast @@ -5,41 +5,41 @@ (local $z i32) (local $a i32) (local $b i32) - (set_local $x (i32.const 1)) - (if (get_local $x) (nop)) - (if (get_local $x) (nop)) - (set_local $y (if (result i32) (i32.const 2) (i32.const 3) (i32.const 4))) - (drop (get_local $y)) - (set_local $z (block (result i32) (i32.const 5))) - (drop (get_local $z)) + (local.set $x (i32.const 1)) + (if (local.get $x) (nop)) + (if (local.get $x) (nop)) + (local.set $y (if (result i32) (i32.const 2) (i32.const 3) (i32.const 4))) + (drop (local.get $y)) + (local.set $z (block (result i32) (i32.const 5))) + (drop (local.get $z)) (if (i32.const 6) - (set_local $a (i32.const 7)) - (set_local $a (i32.const 8)) + (local.set $a (i32.const 7)) + (local.set $a (i32.const 8)) ) - (drop (get_local $a)) + (drop (local.get $a)) (block $val (if (i32.const 10) (block - (set_local $b (i32.const 11)) + (local.set $b (i32.const 11)) (br $val) ) ) - (set_local $b (i32.const 12)) + (local.set $b (i32.const 12)) ) - (drop (get_local $b)) + (drop (local.get $b)) ) (func $no-unreachable (local $x i32) (drop - (tee_local $x + (local.tee $x (unreachable) ) ) ) (func $implicit-trap-and-global-effects (local $var$0 i32) - (set_local $var$0 - (i32.trunc_u/f64 + (local.set $var$0 + (i32.trunc_f64_u (f64.const -nan:0xfffffffffffc3) ;; this implicit trap will actually trap ) ) @@ -48,52 +48,52 @@ (f32.const 154) ) (drop - (get_local $var$0) + (local.get $var$0) ) ) (func $implicit-trap-and-local-effects (local $var$0 i32) (local $other i32) - (set_local $var$0 - (i32.trunc_u/f64 + (local.set $var$0 + (i32.trunc_f64_u (f64.const -nan:0xfffffffffffc3) ;; this implicit trap will actually trap ) ) - (set_local $other (i32.const 100)) ;; but it's fine to move it across a local effect, that vanishes anyhow + (local.set $other (i32.const 100)) ;; but it's fine to move it across a local effect, that vanishes anyhow (drop - (get_local $var$0) + (local.get $var$0) ) (if (i32.const 1) (drop - (get_local $other) + (local.get $other) ) ) ) (func $multi-pass-get-equivs-right (param $var$0 i32) (param $var$1 i32) (result f64) (local $var$2 i32) - (set_local $var$2 - (get_local $var$0) + (local.set $var$2 + (local.get $var$0) ) (i32.store - (get_local $var$2) + (local.get $var$2) (i32.const 1) ) - (f64.promote/f32 + (f64.promote_f32 (f32.load - (get_local $var$2) + (local.get $var$2) ) ) ) (func $if-value-structure-equivalent (param $x i32) (result i32) (local $y i32) (if (i32.const 1) - (set_local $x (i32.const 2)) + (local.set $x (i32.const 2)) (block - (set_local $y (get_local $x)) - (set_local $x (get_local $y)) + (local.set $y (local.get $x)) + (local.set $x (local.get $y)) ) ) - (get_local $x) + (local.get $x) ) ) |