s390x: Fix handling of sret arguments (#5116)

Skip synthetic StructReturn entries in the return value list.
Fixes https://github.com/bytecodealliance/wasmtime/issues/5089
This commit is contained in:
Ulrich Weigand
2022-10-25 19:40:10 +02:00
committed by GitHub
parent 441401f9d6
commit 39b3b1d772
4 changed files with 34 additions and 3 deletions

View File

@@ -220,3 +220,21 @@ block0(v0: i128, v1: i128, v2: i128, v3: i128, v4: i128, v5: i128, v6: i128, v7:
; vst %v17, 0(%r2)
; br %r14
function %call_sret() -> i64 {
fn0 = colocated %g(i64 sret)
block0:
v1 = iconst.i64 0
call fn0(v1)
trap user0
}
; stmg %r14, %r15, 112(%r15)
; aghi %r15, -160
; virtual_sp_offset_adjust 160
; block0:
; lghi %r2, 0
; brasl %r14, %g
; trap