summaryrefslogtreecommitdiff
path: root/test/interp/return-call-indirect.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/interp/return-call-indirect.txt')
-rw-r--r--test/interp/return-call-indirect.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/interp/return-call-indirect.txt b/test/interp/return-call-indirect.txt
index 1e386b0e..cca47171 100644
--- a/test/interp/return-call-indirect.txt
+++ b/test/interp/return-call-indirect.txt
@@ -2,7 +2,7 @@
;;; ARGS*: --enable-tail-call
(module
(type $iii_i (func (param i32 i32 i32)(result i32)))
- (table anyfunc (elem $facInd))
+ (table funcref (elem $facInd))
(func (export "facInd10") (result i32)
i32.const 10
@@ -14,22 +14,22 @@
(;; Tail call version of factorial, using indirect call ;;)
(;; fac(Ix,So) => Ix==0?So:fac(Ix-1,So*Ix) ;;)
(func $facInd (type $iii_i)
- get_local 0
+ local.get 0
i32.const 0
i32.gt_s
if (result i32)
- get_local 0
+ local.get 0
i32.const 1
i32.sub
- get_local 1
- get_local 0
+ local.get 1
+ local.get 0
i32.mul
- get_local 2
- get_local 2
+ local.get 2
+ local.get 2
return_call_indirect (type $iii_i)
unreachable
else
- get_local 1
+ local.get 1
return
end)
)