summaryrefslogtreecommitdiff
path: root/test/lld/recursive.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld/recursive.wast')
-rw-r--r--test/lld/recursive.wast40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/lld/recursive.wast b/test/lld/recursive.wast
index c6dbdd359..f3501b39b 100644
--- a/test/lld/recursive.wast
+++ b/test/lld/recursive.wast
@@ -6,7 +6,7 @@
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 587))
- (table 1 1 anyfunc)
+ (table 1 1 funcref)
(memory $0 2)
(data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
(export "memory" (memory $0))
@@ -16,51 +16,51 @@
(export "__data_end" (global $global$2))
(func $foo (; 1 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(local $var$2 i32)
- (set_global $global$0
- (tee_local $var$2
+ (global.set $global$0
+ (local.tee $var$2
(i32.sub
- (get_global $global$0)
+ (global.get $global$0)
(i32.const 16)
)
)
)
(i32.store offset=4
- (get_local $var$2)
- (get_local $var$1)
+ (local.get $var$2)
+ (local.get $var$1)
)
(i32.store
- (get_local $var$2)
- (get_local $var$0)
+ (local.get $var$2)
+ (local.get $var$0)
)
(drop
(call $printf
(i32.const 568)
- (get_local $var$2)
+ (local.get $var$2)
)
)
- (set_global $global$0
+ (global.set $global$0
(i32.add
- (get_local $var$2)
+ (local.get $var$2)
(i32.const 16)
)
)
(i32.add
- (get_local $var$1)
- (get_local $var$0)
+ (local.get $var$1)
+ (local.get $var$0)
)
)
(func $main (; 2 ;) (type $1) (result i32)
(local $var$0 i32)
- (set_global $global$0
- (tee_local $var$0
+ (global.set $global$0
+ (local.tee $var$0
(i32.sub
- (get_global $global$0)
+ (global.get $global$0)
(i32.const 16)
)
)
)
(i32.store
- (get_local $var$0)
+ (local.get $var$0)
(call $foo
(i32.const 1)
(i32.const 2)
@@ -69,12 +69,12 @@
(drop
(call $printf
(i32.const 575)
- (get_local $var$0)
+ (local.get $var$0)
)
)
- (set_global $global$0
+ (global.set $global$0
(i32.add
- (get_local $var$0)
+ (local.get $var$0)
(i32.const 16)
)
)