summaryrefslogtreecommitdiff
path: root/test/print
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-01-07 13:24:58 -0800
committerGitHub <noreply@github.com>2019-01-07 13:24:58 -0800
commit7d94900ded8e2e5ce8ef8ee2687528531d8f2a97 (patch)
treed8bba13d306b0c5ecba384384e602e6cccc83015 /test/print
parent6f91af190effd7b8a5969314dd4fb3d2ec540524 (diff)
downloadbinaryen-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/print')
-rw-r--r--test/print/min.minified.txt4
-rw-r--r--test/print/min.txt16
-rw-r--r--test/print/min.wast16
3 files changed, 18 insertions, 18 deletions
diff --git a/test/print/min.minified.txt b/test/print/min.minified.txt
index 2a3b8a654..37d1cea08 100644
--- a/test/print/min.minified.txt
+++ b/test/print/min.minified.txt
@@ -1,4 +1,4 @@
(module(type $0 (func(param f32)(result f32)))(type $1 (func(param i32 i32)(result f32)))(type $2 (func(param i32)(result i32)))(type $3 (func(param i32 i32 i32)(result i32)))(memory $0 256 256)
-(export "floats" (func $floats))(func $floats(type $0)(param $f f32)(result f32)(local $t f32)(f32.add(get_local $t)(get_local $f)))(func $neg(type $1)(param $k i32)(param $p i32)(result f32)(local $n f32)(tee_local $n(f32.neg(block $block0 (result f32)(i32.store(get_local $k)(get_local $p))(f32.load(get_local $k))))))(func $littleswitch(type $2)(param $x i32)(result i32)(block $topmost (result i32)(block $switch-case$2(block $switch-case$1(br_table $switch-case$1 $switch-case$2 $switch-case$1(i32.sub(get_local $x)(i32.const 1))))
+(export "floats" (func $floats))(func $floats(type $0)(param $f f32)(result f32)(local $t f32)(f32.add(local.get $t)(local.get $f)))(func $neg(type $1)(param $k i32)(param $p i32)(result f32)(local $n f32)(local.tee $n(f32.neg(block $block0 (result f32)(i32.store(local.get $k)(local.get $p))(f32.load(local.get $k))))))(func $littleswitch(type $2)(param $x i32)(result i32)(block $topmost (result i32)(block $switch-case$2(block $switch-case$1(br_table $switch-case$1 $switch-case$2 $switch-case$1(i32.sub(local.get $x)(i32.const 1))))
(br $topmost(i32.const 1)))
-(br $topmost(i32.const 2))(i32.const 0)))(func $f1(type $3)(param $i1 i32)(param $i2 i32)(param $i3 i32)(result i32)(block $topmost (result i32)(get_local $i3)))) \ No newline at end of file
+(br $topmost(i32.const 2))(i32.const 0)))(func $f1(type $3)(param $i1 i32)(param $i2 i32)(param $i3 i32)(result i32)(block $topmost (result i32)(local.get $i3)))) \ No newline at end of file
diff --git a/test/print/min.txt b/test/print/min.txt
index c58551fe3..b34ee140b 100644
--- a/test/print/min.txt
+++ b/test/print/min.txt
@@ -8,21 +8,21 @@
(func $floats (; 0 ;) (type $0) (param $f f32) (result f32)
(local $t f32)
(f32.add
- (get_local $t)
- (get_local $f)
+ (local.get $t)
+ (local.get $f)
)
)
(func $neg (; 1 ;) (type $1) (param $k i32) (param $p i32) (result f32)
(local $n f32)
- (tee_local $n
+ (local.tee $n
(f32.neg
(block $block0 (result f32)
(i32.store
- (get_local $k)
- (get_local $p)
+ (local.get $k)
+ (local.get $p)
)
(f32.load
- (get_local $k)
+ (local.get $k)
)
)
)
@@ -34,7 +34,7 @@
(block $switch-case$1
(br_table $switch-case$1 $switch-case$2 $switch-case$1
(i32.sub
- (get_local $x)
+ (local.get $x)
(i32.const 1)
)
)
@@ -51,7 +51,7 @@
)
(func $f1 (; 3 ;) (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(block $topmost (result i32)
- (get_local $i3)
+ (local.get $i3)
)
)
)
diff --git a/test/print/min.wast b/test/print/min.wast
index 8ef35a49d..4efd4608b 100644
--- a/test/print/min.wast
+++ b/test/print/min.wast
@@ -8,21 +8,21 @@
(func $floats (type $0) (param $f f32) (result f32)
(local $t f32)
(f32.add
- (get_local $t)
- (get_local $f)
+ (local.get $t)
+ (local.get $f)
)
)
(func $neg (type $1) (param $k i32) (param $p i32) (result f32)
(local $n f32)
- (tee_local $n
+ (local.tee $n
(f32.neg
(block $block0 (result f32)
(i32.store
- (get_local $k)
- (get_local $p)
+ (local.get $k)
+ (local.get $p)
)
(f32.load
- (get_local $k)
+ (local.get $k)
)
)
)
@@ -34,7 +34,7 @@
(block $switch-case$1
(br_table $switch-case$1 $switch-case$2 $switch-case$1
(i32.sub
- (get_local $x)
+ (local.get $x)
(i32.const 1)
)
)
@@ -51,7 +51,7 @@
)
(func $f1 (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(block $topmost (result i32)
- (get_local $i3)
+ (local.get $i3)
)
)
)