diff options
Diffstat (limited to 'test/lld/em_asm.wat.out')
-rw-r--r-- | test/lld/em_asm.wat.out | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/test/lld/em_asm.wat.out b/test/lld/em_asm.wat.out new file mode 100644 index 000000000..c66cdc1cc --- /dev/null +++ b/test/lld/em_asm.wat.out @@ -0,0 +1,146 @@ +(module + (type $0 (func (param i32 i32 i32) (result i32))) + (type $1 (func)) + (type $2 (func (result i32))) + (type $3 (func (param i32 i32) (result i32))) + (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) + (import "env" "emscripten_asm_const_iii" (func $emscripten_asm_const_iii (param i32 i32 i32) (result i32))) + (memory $0 2) + (data (i32.const 568) "{ Module.print(\"Hello world\"); }\00\00{ return $0 + $1; }\00ii\00{ Module.print(\"Got \" + $0); }\00i\00") + (table $0 1 1 funcref) + (global $global$0 (mut i32) (i32.const 66208)) + (global $global$1 i32 (i32.const 658)) + (export "memory" (memory $0)) + (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "main" (func $main)) + (export "__data_end" (global $global$1)) + (export "stackSave" (func $stackSave)) + (export "stackAlloc" (func $stackAlloc)) + (export "stackRestore" (func $stackRestore)) + (export "__growWasmMemory" (func $__growWasmMemory)) + (func $__wasm_call_ctors (; 1 ;) (type $1) + (nop) + ) + (func $__original_main (; 2 ;) (type $2) (result i32) + (local $0 i32) + (global.set $global$0 + (local.tee $0 + (i32.sub + (global.get $global$0) + (i32.const 32) + ) + ) + ) + (drop + (call $emscripten_asm_const_iii + (i32.const 568) + (i32.const 601) + (i32.const 0) + ) + ) + (i64.store offset=16 + (local.get $0) + (i64.const 115964117005) + ) + (i32.store + (local.get $0) + (call $emscripten_asm_const_iii + (i32.const 602) + (i32.const 622) + (i32.add + (local.get $0) + (i32.const 16) + ) + ) + ) + (drop + (call $emscripten_asm_const_iii + (i32.const 625) + (i32.const 656) + (local.get $0) + ) + ) + (global.set $global$0 + (i32.add + (local.get $0) + (i32.const 32) + ) + ) + (i32.const 0) + ) + (func $main (; 3 ;) (type $3) (param $0 i32) (param $1 i32) (result i32) + (call $__original_main) + ) + (func $stackSave (; 4 ;) (result i32) + (global.get $global$0) + ) + (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) + (local $1 i32) + (global.set $global$0 + (local.tee $1 + (i32.and + (i32.sub + (global.get $global$0) + (local.get $0) + ) + (i32.const -16) + ) + ) + ) + (local.get $1) + ) + (func $stackRestore (; 6 ;) (param $0 i32) + (global.set $global$0 + (local.get $0) + ) + ) + (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32) + (memory.grow + (local.get $newSize) + ) + ) +) +(; +--BEGIN METADATA -- +{ + "asmConsts": { + "568": ["{ Module.print(\"Hello world\"); }", ["iii"], [""]], + "602": ["{ return $0 + $1; }", ["iii"], [""]], + "625": ["{ Module.print(\"Got \" + $0); }", ["iii"], [""]] + }, + "staticBump": 90, + "tableSize": 1, + "initializers": [ + "__wasm_call_ctors" + ], + "declares": [ + ], + "externs": [ + ], + "implementedFunctions": [ + "___wasm_call_ctors", + "_main", + "_stackSave", + "_stackAlloc", + "_stackRestore", + "___growWasmMemory" + ], + "exports": [ + "__wasm_call_ctors", + "main", + "stackSave", + "stackAlloc", + "stackRestore", + "__growWasmMemory" + ], + "namedGlobals": { + "__data_end" : "658" + }, + "invokeFuncs": [ + ], + "features": [ + ], + "mainReadsParams": 0 +} +-- END METADATA -- +;) |