diff options
Diffstat (limited to 'test/unit.wast.fromBinary')
-rw-r--r-- | test/unit.wast.fromBinary | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary index 9dce93afa..d999ca394 100644 --- a/test/unit.wast.fromBinary +++ b/test/unit.wast.fromBinary @@ -1,14 +1,14 @@ (module - (type $0 (func (param f32))) + (type $0 (func (result i32))) (type $1 (func)) - (type $2 (func (param f64) (result i32))) - (type $3 (func (param f64 f64) (result f64))) - (type $4 (func (result f64))) - (type $5 (func (result i32))) + (type $2 (func (param f32))) + (type $3 (func (result f64))) + (type $4 (func (param f64 f64) (result f64))) + (type $5 (func (param i32 i64))) (type $6 (func (param i32) (result i32))) - (type $7 (func (param f64) (result f64))) + (type $7 (func (param f64) (result i32))) (type $8 (func (result i64))) - (type $9 (func (param i32 i64))) + (type $9 (func (param f64) (result f64))) (import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi)) (import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32))) (import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64))) @@ -35,7 +35,7 @@ (f64.const -0.039625) ) ) - (func $importedDoubles (; 4 ;) (type $4) (result f64) + (func $importedDoubles (; 4 ;) (type $3) (result f64) (local $0 f64) (block $label$1 (result f64) (local.set $0 @@ -87,7 +87,7 @@ (f64.const 1.2) ) ) - (func $doubleCompares (; 5 ;) (type $3) (param $0 f64) (param $1 f64) (result f64) + (func $doubleCompares (; 5 ;) (type $4) (param $0 f64) (param $1 f64) (result f64) (local $2 i32) (local $3 f64) (local $4 f64) @@ -131,7 +131,7 @@ (local.get $1) ) ) - (func $intOps (; 6 ;) (type $5) (result i32) + (func $intOps (; 6 ;) (type $0) (result i32) (local $0 i32) (i32.eq (local.get $0) @@ -273,13 +273,13 @@ (br $label$1) ) ) - (func $frem (; 12 ;) (type $4) (result f64) + (func $frem (; 12 ;) (type $3) (result f64) (call $f64-rem (f64.const 5.5) (f64.const 1.2) ) ) - (func $big_uint_div_u (; 13 ;) (type $5) (result i32) + (func $big_uint_div_u (; 13 ;) (type $0) (result i32) (local $0 i32) (local.set $0 (i32.and @@ -292,7 +292,7 @@ ) (local.get $0) ) - (func $fr (; 14 ;) (type $0) (param $0 f32) + (func $fr (; 14 ;) (type $2) (param $0 f32) (local $1 f32) (local $2 f64) (drop @@ -316,7 +316,7 @@ (f32.const 0) ) ) - (func $negZero (; 15 ;) (type $4) (result f64) + (func $negZero (; 15 ;) (type $3) (result f64) (f64.const -0) ) (func $abs (; 16 ;) (type $1) @@ -360,7 +360,7 @@ (local.get $0) ) ) - (call_indirect (type $0) + (call_indirect (type $2) (local.get $0) (i32.add (i32.and @@ -371,8 +371,8 @@ ) ) ) - (func $cneg (; 18 ;) (type $0) (param $0 f32) - (call_indirect (type $0) + (func $cneg (; 18 ;) (type $2) (param $0 f32) + (call_indirect (type $2) (local.get $0) (i32.add (i32.and @@ -401,7 +401,7 @@ (func $w (; 21 ;) (type $1) (nop) ) - (func $block_and_after (; 22 ;) (type $5) (result i32) + (func $block_and_after (; 22 ;) (type $0) (result i32) (block $label$1 (drop (i32.const 1) @@ -410,7 +410,7 @@ ) (i32.const 0) ) - (func $loop-roundtrip (; 23 ;) (type $7) (param $0 f64) (result f64) + (func $loop-roundtrip (; 23 ;) (type $9) (param $0 f64) (result f64) (loop $label$1 (result f64) (drop (local.get $0) @@ -421,18 +421,18 @@ (func $big-i64 (; 24 ;) (type $8) (result i64) (i64.const -9218868437227405313) ) - (func $i64-store32 (; 25 ;) (type $9) (param $0 i32) (param $1 i64) + (func $i64-store32 (; 25 ;) (type $5) (param $0 i32) (param $1 i64) (i64.store32 (local.get $0) (local.get $1) ) ) - (func $return-unreachable (; 26 ;) (type $5) (result i32) + (func $return-unreachable (; 26 ;) (type $0) (result i32) (return (i32.const 1) ) ) - (func $unreachable-block (; 27 ;) (type $5) (result i32) + (func $unreachable-block (; 27 ;) (type $0) (result i32) (block $label$1 (drop (i32.const 1) @@ -442,7 +442,7 @@ ) ) ) - (func $unreachable-block-toplevel (; 28 ;) (type $5) (result i32) + (func $unreachable-block-toplevel (; 28 ;) (type $0) (result i32) (drop (i32.const 1) ) @@ -450,19 +450,19 @@ (i32.const 2) ) ) - (func $unreachable-block0 (; 29 ;) (type $5) (result i32) + (func $unreachable-block0 (; 29 ;) (type $0) (result i32) (block $label$1 (return (i32.const 2) ) ) ) - (func $unreachable-block0-toplevel (; 30 ;) (type $5) (result i32) + (func $unreachable-block0-toplevel (; 30 ;) (type $0) (result i32) (return (i32.const 2) ) ) - (func $unreachable-block-with-br (; 31 ;) (type $5) (result i32) + (func $unreachable-block-with-br (; 31 ;) (type $0) (result i32) (block $label$1 (drop (i32.const 1) @@ -471,7 +471,7 @@ ) (i32.const 1) ) - (func $unreachable-if (; 32 ;) (type $5) (result i32) + (func $unreachable-if (; 32 ;) (type $0) (result i32) (if (i32.const 3) (return @@ -482,7 +482,7 @@ ) ) ) - (func $unreachable-if-toplevel (; 33 ;) (type $5) (result i32) + (func $unreachable-if-toplevel (; 33 ;) (type $0) (result i32) (if (i32.const 3) (return @@ -493,7 +493,7 @@ ) ) ) - (func $unreachable-loop (; 34 ;) (type $5) (result i32) + (func $unreachable-loop (; 34 ;) (type $0) (result i32) (loop $label$1 (nop) (return @@ -501,14 +501,14 @@ ) ) ) - (func $unreachable-loop0 (; 35 ;) (type $5) (result i32) + (func $unreachable-loop0 (; 35 ;) (type $0) (result i32) (loop $label$1 (return (i32.const 1) ) ) ) - (func $unreachable-loop-toplevel (; 36 ;) (type $5) (result i32) + (func $unreachable-loop-toplevel (; 36 ;) (type $0) (result i32) (loop $label$1 (nop) (return @@ -516,7 +516,7 @@ ) ) ) - (func $unreachable-loop0-toplevel (; 37 ;) (type $5) (result i32) + (func $unreachable-loop0-toplevel (; 37 ;) (type $0) (result i32) (loop $label$1 (return (i32.const 1) |