diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-03-09 13:32:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 13:32:03 -0800 |
commit | be4be557567251a73f40bfd7a48220b33f5ddc58 (patch) | |
tree | d4aa0a25a1c7331b56404c76eea1a6cfa971c44e /test/min.wast.fromBinary | |
parent | d6508e1f9cef33c43016e4da7dd4b94392f280a9 (diff) | |
download | binaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.tar.gz binaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.tar.bz2 binaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.zip |
use a single space for pretty printing of wasts, so massive wasts are less unruly (#928)
Diffstat (limited to 'test/min.wast.fromBinary')
-rw-r--r-- | test/min.wast.fromBinary | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/test/min.wast.fromBinary b/test/min.wast.fromBinary index 46336ca70..ba1fbbd57 100644 --- a/test/min.wast.fromBinary +++ b/test/min.wast.fromBinary @@ -1,58 +1,58 @@ (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 $var$0 f32) (result f32) - (local $var$1 f32) - (f32.add + (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 $var$0 f32) (result f32) + (local $var$1 f32) + (f32.add + (get_local $var$1) + (get_local $var$0) + ) + ) + (func $neg (type $1) (param $var$0 i32) (param $var$1 i32) (result f32) + (local $var$2 f32) + (tee_local $var$2 + (f32.neg + (block $label$0 f32 + (i32.store + (get_local $var$0) (get_local $var$1) + ) + (f32.load (get_local $var$0) + ) ) + ) ) - (func $neg (type $1) (param $var$0 i32) (param $var$1 i32) (result f32) - (local $var$2 f32) - (tee_local $var$2 - (f32.neg - (block $label$0 f32 - (i32.store - (get_local $var$0) - (get_local $var$1) - ) - (f32.load - (get_local $var$0) - ) - ) + ) + (func $littleswitch (type $2) (param $var$0 i32) (result i32) + (block $label$0 i32 + (block $label$1 + (block $label$2 + (br_table $label$2 $label$1 $label$2 + (i32.sub + (get_local $var$0) + (i32.const 1) ) + ) ) - ) - (func $littleswitch (type $2) (param $var$0 i32) (result i32) - (block $label$0 i32 - (block $label$1 - (block $label$2 - (br_table $label$2 $label$1 $label$2 - (i32.sub - (get_local $var$0) - (i32.const 1) - ) - ) - ) - (br $label$0 - (i32.const 1) - ) - ) - (br $label$0 - (i32.const 2) - ) - (i32.const 0) + (br $label$0 + (i32.const 1) ) + ) + (br $label$0 + (i32.const 2) + ) + (i32.const 0) ) - (func $f1 (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32) - (block $label$0 i32 - (get_local $var$2) - ) + ) + (func $f1 (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32) + (block $label$0 i32 + (get_local $var$2) ) + ) ) |