diff options
Diffstat (limited to 'test/passes/emit-js-wrapper=a.js.txt')
-rw-r--r-- | test/passes/emit-js-wrapper=a.js.txt | 72 |
1 files changed, 63 insertions, 9 deletions
diff --git a/test/passes/emit-js-wrapper=a.js.txt b/test/passes/emit-js-wrapper=a.js.txt index e390a8fbb..508b62f5b 100644 --- a/test/passes/emit-js-wrapper=a.js.txt +++ b/test/passes/emit-js-wrapper=a.js.txt @@ -4,25 +4,27 @@ (type $2 (func (param i32 i64 f32 f64))) (type $3 (func (param i32 f32 f64))) (type $4 (func (param i32 f32 f64) (result i64))) + (type $FUNCSIG$vi (func (param i32))) + (import "env" "setTempRet0" (func $setTempRet0 (param i32))) (memory $0 256 256) (export "add" (func $add)) (export "no_return" (func $no-return)) - (export "types" (func $types)) - (export "types2" (func $types2)) - (export "types3" (func $types3)) - (func $add (; 0 ;) (type $0) (param $x i32) (param $y i32) (result i32) + (export "types" (func $legalstub$types)) + (export "types2" (func $legalstub$types2)) + (export "types3" (func $legalstub$types3)) + (func $add (; 1 ;) (type $0) (param $x i32) (param $y i32) (result i32) (i32.add (get_local $x) (get_local $y) ) ) - (func $unexported (; 1 ;) (type $0) (param $x i32) (param $y i32) (result i32) + (func $unexported (; 2 ;) (type $0) (param $x i32) (param $y i32) (result i32) (i32.add (get_local $x) (get_local $y) ) ) - (func $no-return (; 2 ;) (type $1) (param $x i32) + (func $no-return (; 3 ;) (type $1) (param $x i32) (drop (i32.add (get_local $x) @@ -30,13 +32,65 @@ ) ) ) - (func $types (; 3 ;) (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64) + (func $types (; 4 ;) (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64) (nop) ) - (func $types2 (; 4 ;) (type $3) (param $x i32) (param $z f32) (param $w f64) + (func $types2 (; 5 ;) (type $3) (param $x i32) (param $z f32) (param $w f64) (nop) ) - (func $types3 (; 5 ;) (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64) + (func $types3 (; 6 ;) (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64) (i64.const 1) ) + (func $legalstub$types (; 7 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64) (param $4 f64) + (call $types + (get_local $0) + (i64.or + (i64.extend_u/i32 + (get_local $1) + ) + (i64.shl + (i64.extend_u/i32 + (get_local $2) + ) + (i64.const 32) + ) + ) + (f32.demote/f64 + (get_local $3) + ) + (get_local $4) + ) + ) + (func $legalstub$types2 (; 8 ;) (param $0 i32) (param $1 f64) (param $2 f64) + (call $types2 + (get_local $0) + (f32.demote/f64 + (get_local $1) + ) + (get_local $2) + ) + ) + (func $legalstub$types3 (; 9 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result i32) + (local $3 i64) + (set_local $3 + (call $types3 + (get_local $0) + (f32.demote/f64 + (get_local $1) + ) + (get_local $2) + ) + ) + (call $setTempRet0 + (i32.wrap/i64 + (i64.shr_u + (get_local $3) + (i64.const 32) + ) + ) + ) + (i32.wrap/i64 + (get_local $3) + ) + ) ) |