diff options
-rw-r--r-- | test/lld/duplicate_imports.wast.out | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/test/lld/duplicate_imports.wast.out b/test/lld/duplicate_imports.wast.out index 71c652126..7d6212572 100644 --- a/test/lld/duplicate_imports.wast.out +++ b/test/lld/duplicate_imports.wast.out @@ -6,10 +6,16 @@ (type $FUNCSIG$ij (func (param i64) (result i32))) (type $FUNCSIG$fifd (func (param i32 f32 f64) (result f32))) (type $FUNCSIG$fidd (func (param i32 f64 f64) (result f32))) + (type $legaltype$puts2 (func (param i32 i32) (result i32))) + (type $legaltype$invoke_ffd (func (param i32 f64 f64) (result f64))) + (type $legaltype$invoke_ffd2 (func (param i32 f64 f64) (result f64))) (import "env" "puts" (func $puts1 (param i32) (result i32))) (import "env" "puts" (func $puts2 (param i64) (result i32))) (import "env" "invoke_ffd" (func $invoke_ffd (param i32 f32 f64) (result f32))) (import "env" "invoke_ffd" (func $invoke_ffd2 (param i32 f64 f64) (result f32))) + (import "env" "puts" (func $legalimport$puts2 (param i32 i32) (result i32))) + (import "env" "invoke_ffd" (func $legalimport$invoke_ffd (param i32 f64 f64) (result f64))) + (import "env" "invoke_ffd" (func $legalimport$invoke_ffd2 (param i32 f64 f64) (result f64))) (global $global$0 (mut i32) (i32.const 66128)) (global $global$1 i32 (i32.const 66128)) (global $global$2 i32 (i32.const 581)) @@ -25,7 +31,7 @@ (export "stackAlloc" (func $stackAlloc)) (export "stackRestore" (func $stackRestore)) (export "__growWasmMemory" (func $__growWasmMemory)) - (func $main (; 4 ;) (type $1) (result i32) + (func $main (; 7 ;) (type $1) (result i32) (drop (call $puts1 (i32.const 568) @@ -33,13 +39,46 @@ ) (i32.const 0) ) - (func $__wasm_call_ctors (; 5 ;) (type $2) + (func $__wasm_call_ctors (; 8 ;) (type $2) (nop) ) - (func $stackSave (; 6 ;) (result i32) + (func $legalfunc$puts2 (; 9 ;) (param $0 i64) (result i32) + (call $legalimport$puts2 + (i32.wrap/i64 + (get_local $0) + ) + (i32.wrap/i64 + (i64.shr_u + (get_local $0) + (i64.const 32) + ) + ) + ) + ) + (func $legalfunc$invoke_ffd (; 10 ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32) + (f32.demote/f64 + (call $legalimport$invoke_ffd + (get_local $0) + (f64.promote/f32 + (get_local $1) + ) + (get_local $2) + ) + ) + ) + (func $legalfunc$invoke_ffd2 (; 11 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f32) + (f32.demote/f64 + (call $legalimport$invoke_ffd2 + (get_local $0) + (get_local $1) + (get_local $2) + ) + ) + ) + (func $stackSave (; 12 ;) (result i32) (get_global $global$0) ) - (func $stackAlloc (; 7 ;) (param $0 i32) (result i32) + (func $stackAlloc (; 13 ;) (param $0 i32) (result i32) (local $1 i32) (set_global $global$0 (tee_local $1 @@ -54,12 +93,12 @@ ) (get_local $1) ) - (func $stackRestore (; 8 ;) (param $0 i32) + (func $stackRestore (; 14 ;) (param $0 i32) (set_global $global$0 (get_local $0) ) ) - (func $__growWasmMemory (; 9 ;) (param $newSize i32) (result i32) + (func $__growWasmMemory (; 15 ;) (param $newSize i32) (result i32) (grow_memory (get_local $newSize) ) |