diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lld/hello_world.wast.mem.mem | bin | 0 -> 581 bytes | |||
-rw-r--r-- | test/lld/hello_world.wast.mem.out | 61 |
2 files changed, 61 insertions, 0 deletions
diff --git a/test/lld/hello_world.wast.mem.mem b/test/lld/hello_world.wast.mem.mem Binary files differnew file mode 100644 index 000000000..674c410a9 --- /dev/null +++ b/test/lld/hello_world.wast.mem.mem diff --git a/test/lld/hello_world.wast.mem.out b/test/lld/hello_world.wast.mem.out new file mode 100644 index 000000000..f54d9cbbd --- /dev/null +++ b/test/lld/hello_world.wast.mem.out @@ -0,0 +1,61 @@ +(module + (type $0 (func (param i32) (result i32))) + (type $1 (func (result i32))) + (type $2 (func)) + (type $FUNCSIG$ii (func (param i32) (result i32))) + (import "env" "puts" (func $puts (param i32) (result i32))) + (memory $0 2) + (table $0 1 1 anyfunc) + (global $global$0 (mut i32) (i32.const 66128)) + (global $global$1 i32 (i32.const 66128)) + (global $global$2 i32 (i32.const 581)) + (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 (; 1 ;) (type $1) (result i32) + (drop + (call $puts + (i32.const 568) + ) + ) + (i32.const 0) + ) + (func $__wasm_call_ctors (; 2 ;) (type $2) + (nop) + ) + (func $stackSave (; 3 ;) (result i32) + (get_global $global$0) + ) + (func $stackAlloc (; 4 ;) (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 (; 5 ;) (param $0 i32) + (set_global $global$0 + (get_local $0) + ) + ) + (func $__growWasmMemory (; 6 ;) (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": [] } |