summaryrefslogtreecommitdiff
path: root/test/lld/duplicate_imports.wast.out
blob: e6e3a175b8aa6cb9ab030112e5f0189c1d3f54ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
(module
 (type $0 (func (param i32) (result i32)))
 (type $1 (func (result i32)))
 (type $2 (func))
 (type $FUNCSIG$ii (func (param i32) (result i32)))
 (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 $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))
 (table 1 1 anyfunc)
 (memory $0 2)
 (data (i32.const 568) "Hello, world\00")
 (export "memory" (memory $0))
 (export "__wasm_call_ctors" (func $__wasm_call_ctors))
 (export "main" (func $main))
 (export "__heap_base" (global $global$1))
 (export "__data_end" (global $global$2))
 (export "stackSave" (func $stackSave))
 (export "stackAlloc" (func $stackAlloc))
 (export "stackRestore" (func $stackRestore))
 (export "__growWasmMemory" (func $__growWasmMemory))
 (func $main (; 4 ;) (type $1) (result i32)
  (drop
   (call $puts1
    (i32.const 568)
   )
  )
  (i32.const 0)
 )
 (func $__wasm_call_ctors (; 5 ;) (type $2)
  (nop)
 )
 (func $legalfunc$puts2 (; 6 ;) (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 (; 7 ;) (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 (; 8 ;) (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 (; 9 ;) (result i32)
  (get_global $global$0)
 )
 (func $stackAlloc (; 10 ;) (param $0 i32) (result i32)
  (local $1 i32)
  (set_global $global$0
   (tee_local $1
    (i32.and
     (i32.sub
      (get_global $global$0)
      (get_local $0)
     )
     (i32.const -16)
    )
   )
  )
  (get_local $1)
 )
 (func $stackRestore (; 11 ;) (param $0 i32)
  (set_global $global$0
   (get_local $0)
  )
 )
 (func $__growWasmMemory (; 12 ;) (param $newSize i32) (result i32)
  (grow_memory
   (get_local $newSize)
  )
 )
)
;; METADATA: { "asmConsts": {},"staticBump": 13, "initializers": ["__wasm_call_ctors"], "declares": ["puts"], "externs": [], "implementedFunctions": ["___wasm_call_ctors","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__wasm_call_ctors","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": ["invoke_ffd"] }