summaryrefslogtreecommitdiff
path: root/test/lld/em_asm_O0.wat.out
blob: f689658761f0d6f6dde52f389c874b78201a6f66 (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
(module
 (type $i32_=>_i32 (func (param i32) (result i32)))
 (type $none_=>_none (func))
 (type $none_=>_i32 (func (result i32)))
 (type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
 (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
 (import "env" "emscripten_asm_const_i" (func $emscripten_asm_const_i (param i32) (result i32)))
 (import "env" "emscripten_asm_const_iii" (func $emscripten_asm_const_iii (param i32 i32 i32) (result i32)))
 (import "env" "emscripten_asm_const_ii" (func $emscripten_asm_const_ii (param i32 i32) (result i32)))
 (memory $0 2)
 (data (i32.const 568) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00")
 (table $0 1 1 funcref)
 (global $global$0 (mut i32) (i32.const 66192))
 (global $global$1 i32 (i32.const 66192))
 (global $global$2 i32 (i32.const 652))
 (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 "__growWasmMemory" (func $__growWasmMemory))
 (func $main (result i32)
  (local $t1 i32)
  (local $t2 i32)
  (drop
   (call $emscripten_asm_const_i
    (i32.const 568)
   )
  )
  (local.set $t1
   (i32.const 621)
  )
  (local.set $t2
   (i32.const 601)
  )
  (drop
   (call $emscripten_asm_const_ii
    (local.get $t1)
    (call $emscripten_asm_const_iii
     (local.get $t2)
     (i32.const 13)
     (i32.const 27)
    )
   )
  )
  (i32.const 0)
 )
 (func $__wasm_call_ctors
  (nop)
 )
 (func $__growWasmMemory (param $newSize i32) (result i32)
  (memory.grow
   (local.get $newSize)
  )
 )
)
(;
--BEGIN METADATA --
{
  "asmConsts": {
    "568": ["{ Module.print(\"Hello world\"); }", ["i"], [""]],
    "601": ["{ return $0 + $1; }", ["iii"], [""]],
    "621": ["{ Module.print(\"Got \" + $0); }", ["ii"], [""]]
  },
  "staticBump": 84,
  "tableSize": 1,
  "initializers": [
    "__wasm_call_ctors"
  ],
  "declares": [
  ],
  "externs": [
  ],
  "exports": [
    "__wasm_call_ctors",
    "main",
    "__growWasmMemory"
  ],
  "namedGlobals": {
    "__heap_base" : "66192",
    "__data_end" : "652"
  },
  "invokeFuncs": [
  ],
  "mainReadsParams": 1,
  "features": [
  ]
}
-- END METADATA --
;)