summaryrefslogtreecommitdiff
path: root/test/lld/em_asm.wat
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld/em_asm.wat')
-rw-r--r--test/lld/em_asm.wat25
1 files changed, 15 insertions, 10 deletions
diff --git a/test/lld/em_asm.wat b/test/lld/em_asm.wat
index 41d4d127b..0d035496a 100644
--- a/test/lld/em_asm.wat
+++ b/test/lld/em_asm.wat
@@ -5,28 +5,33 @@
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (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")
+ (data $.rodata (i32.const 568) "\00ii\00i\00")
+ (data $em_asm (i32.const 574) "{ 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 66208))
+ (global $__stack_pointer (mut i32) (i32.const 66208))
+ (global $global$1 i32 (i32.const 574))
+ (global $global$2 i32 (i32.const 658))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
+ (export "__start_em_asm" (global $global$1))
+ (export "__stop_em_asm" (global $global$2))
(func $__wasm_call_ctors
)
(func $__original_main (result i32)
(local $0 i32)
- (global.set $global$0
+ (global.set $__stack_pointer
(local.tee $0
(i32.sub
- (global.get $global$0)
+ (global.get $__stack_pointer)
(i32.const 32)
)
)
)
(drop
(call $emscripten_asm_const_int
+ (i32.const 574)
(i32.const 568)
- (i32.const 601)
(i32.const 0)
)
)
@@ -37,8 +42,8 @@
(i32.store
(local.get $0)
(call $emscripten_asm_const_int
- (i32.const 602)
- (i32.const 622)
+ (i32.const 607)
+ (i32.const 569)
(i32.add
(local.get $0)
(i32.const 16)
@@ -47,12 +52,12 @@
)
(drop
(call $emscripten_asm_const_int
- (i32.const 625)
- (i32.const 656)
+ (i32.const 627)
+ (i32.const 572)
(local.get $0)
)
)
- (global.set $global$0
+ (global.set $__stack_pointer
(i32.add
(local.get $0)
(i32.const 32)