Closed
Description
I wanted to use tuple in my code for wasm application. When i tried to compile my code to wasm using wasm32-unknown-unknown
code is compiled but its not returning any return. But I see multi-value is recently supported by webassembly community.
How can I use multivalue ?
My sample example (Note: I'm not using external library like wasm-bindgen
as i want to test with pure LLVM backend)
#[no_mangle]
pub extern fn test(x:u64, y:u64) -> (u64, u64) {
(x + y, x - y)
}
LLVM version: 9
Please suggest in this feature
Thanks