This should exercise the Rust-calling-Wasm code path for when there are more return values than fit into return registers.
23 lines
510 B
Plaintext
23 lines
510 B
Plaintext
(module
|
|
(func $f (import "" "f") (param i32 i64) (result i64 i32))
|
|
|
|
(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)
|
|
)
|