summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-02-29 16:25:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-02-29 16:25:26 -0800
commit11c52f9ca64ccec0d8db6dac22247c8b0eed503f (patch)
tree4180fa47f0e96727d760983f78a805113b277df0 /test
parent84aa340d56ca3bf8b3ae9a2ea3ba4990f975977e (diff)
parent654feec8e99413bd989ede7143fcf5a9c67c9db6 (diff)
downloadbinaryen-11c52f9ca64ccec0d8db6dac22247c8b0eed503f.tar.gz
binaryen-11c52f9ca64ccec0d8db6dac22247c8b0eed503f.tar.bz2
binaryen-11c52f9ca64ccec0d8db6dac22247c8b0eed503f.zip
Merge pull request #204 from mbebenita/print-compact
Compact printing.
Diffstat (limited to 'test')
-rw-r--r--test/print/min.minified.txt55
-rw-r--r--test/print/min.txt54
-rw-r--r--test/print/min.wast (renamed from test/print/min.minified.wast)0
3 files changed, 55 insertions, 54 deletions
diff --git a/test/print/min.minified.txt b/test/print/min.minified.txt
index b66f98c30..5ecab5959 100644
--- a/test/print/min.minified.txt
+++ b/test/print/min.minified.txt
@@ -1,54 +1 @@
-(module
- (memory 16777216 16777216)
- (export "floats" $floats)
- (func $floats (param $f f32) (result f32)
- (local $t f32)
- (f32.add
- (get_local $t)
- (get_local $f)
- )
- )
- (func $neg (param $k i32) (param $p i32)
- (local $n f32)
- (set_local $n
- (f32.neg
- (block $block0
- (i32.store
- (get_local $k)
- (get_local $p)
- )
- (f32.load
- (get_local $k)
- )
- )
- )
- )
- )
- (func $littleswitch (param $x i32) (result i32)
- (block $topmost
- (tableswitch $switch$0
- (i32.sub
- (get_local $x)
- (i32.const 1)
- )
- (table (case $switch-case$1) (case $switch-case$2)) (case $switch-case$1)
- (case $switch-case$1
- (br $topmost
- (i32.const 1)
- )
- )
- (case $switch-case$2
- (br $topmost
- (i32.const 2)
- )
- )
- )
- (i32.const 0)
- )
- )
- (func $f1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
- (block $topmost
- (get_local $i3)
- )
- )
-)
+(module(memory 16777216 16777216)(export "floats" $floats)(func $floats(param $f f32)(result f32)(local $t f32)(f32.add(get_local $t)(get_local $f)))(func $neg(param $k i32)(param $p i32)(local $n f32)(set_local $n(f32.neg(block $block0(i32.store(get_local $k)(get_local $p))(f32.load(get_local $k))))))(func $littleswitch(param $x i32)(result i32)(block $topmost(tableswitch $switch$0(i32.sub(get_local $x)(i32.const 1))(table(case $switch-case$1)(case $switch-case$2)) (case $switch-case$1)(case $switch-case$1(br $topmost(i32.const 1)))(case $switch-case$2(br $topmost(i32.const 2))))(i32.const 0)))(func $f1(param $i1 i32)(param $i2 i32)(param $i3 i32)(result i32)(block $topmost(get_local $i3)))) \ No newline at end of file
diff --git a/test/print/min.txt b/test/print/min.txt
new file mode 100644
index 000000000..b66f98c30
--- /dev/null
+++ b/test/print/min.txt
@@ -0,0 +1,54 @@
+(module
+ (memory 16777216 16777216)
+ (export "floats" $floats)
+ (func $floats (param $f f32) (result f32)
+ (local $t f32)
+ (f32.add
+ (get_local $t)
+ (get_local $f)
+ )
+ )
+ (func $neg (param $k i32) (param $p i32)
+ (local $n f32)
+ (set_local $n
+ (f32.neg
+ (block $block0
+ (i32.store
+ (get_local $k)
+ (get_local $p)
+ )
+ (f32.load
+ (get_local $k)
+ )
+ )
+ )
+ )
+ )
+ (func $littleswitch (param $x i32) (result i32)
+ (block $topmost
+ (tableswitch $switch$0
+ (i32.sub
+ (get_local $x)
+ (i32.const 1)
+ )
+ (table (case $switch-case$1) (case $switch-case$2)) (case $switch-case$1)
+ (case $switch-case$1
+ (br $topmost
+ (i32.const 1)
+ )
+ )
+ (case $switch-case$2
+ (br $topmost
+ (i32.const 2)
+ )
+ )
+ )
+ (i32.const 0)
+ )
+ )
+ (func $f1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (block $topmost
+ (get_local $i3)
+ )
+ )
+)
diff --git a/test/print/min.minified.wast b/test/print/min.wast
index 35ea01ace..35ea01ace 100644
--- a/test/print/min.minified.wast
+++ b/test/print/min.wast