diff options
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) ) + ) ) |