diff options
Diffstat (limited to 'test/lld/recursive.wat')
-rw-r--r-- | test/lld/recursive.wat | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/lld/recursive.wat b/test/lld/recursive.wat index 53bf110e6..96be1d10c 100644 --- a/test/lld/recursive.wat +++ b/test/lld/recursive.wat @@ -4,9 +4,9 @@ (type $none_=>_i32 (func (result i32))) (import "env" "iprintf" (func $iprintf (param i32 i32) (result i32))) (memory $0 2) - (data (i32.const 568) "%d:%d\n\00Result: %d\n\00") + (data $.rodata (i32.const 568) "%d:%d\n\00Result: %d\n\00") (table $0 1 1 funcref) - (global $global$0 (mut i32) (i32.const 66128)) + (global $__stack_pointer (mut i32) (i32.const 66128)) (export "memory" (memory $0)) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "main" (func $main)) @@ -14,10 +14,10 @@ ) (func $foo (param $0 i32) (param $1 i32) (result i32) (local $2 i32) - (global.set $global$0 + (global.set $__stack_pointer (local.tee $2 (i32.sub - (global.get $global$0) + (global.get $__stack_pointer) (i32.const 16) ) ) @@ -36,7 +36,7 @@ (local.get $2) ) ) - (global.set $global$0 + (global.set $__stack_pointer (i32.add (local.get $2) (i32.const 16) @@ -49,10 +49,10 @@ ) (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 16) ) ) @@ -70,7 +70,7 @@ (local.get $0) ) ) - (global.set $global$0 + (global.set $__stack_pointer (i32.add (local.get $0) (i32.const 16) |