Expand the muli-value example for wasmtime-api to use many return values

This should exercise the Rust-calling-Wasm code path for when there are more
return values than fit into return registers.
This commit is contained in:
Nick Fitzgerald
2019-10-29 14:24:36 -07:00
parent b3b7ce4f6b
commit a29303dedd
3 changed files with 56 additions and 6 deletions

View File

@@ -4,4 +4,19 @@
(func $g (export "g") (param i32 i64) (result i64 i32)
(call $f (local.get 0) (local.get 1))
)
(func $round_trip_many
(export "round_trip_many")
(param i64 i64 i64 i64 i64 i64 i64 i64 i64 i64)
(result i64 i64 i64 i64 i64 i64 i64 i64 i64 i64)
local.get 0
local.get 1
local.get 2
local.get 3
local.get 4
local.get 5
local.get 6
local.get 7
local.get 8
local.get 9)
)