]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: preserve nonvolatile VRs when crosscalling into Go on PPC64
authorPaul E. Murphy <murp@ibm.com>
Thu, 30 Mar 2023 16:11:39 +0000 (11:11 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 4 May 2023 18:02:59 +0000 (18:02 +0000)
commit1e51b1fac3b65562ed4d6cf357f96665da55fed1
tree45e41bbdc78d4e438b6adb8f5b8a307784c38c4b
parentc6116bea0309c28500ba0a233e5b0ab01a491a1b
runtime/cgo: preserve nonvolatile VRs when crosscalling into Go on PPC64

ELFv1 and ELFv2 declare V20-V31 as nonvolatile (callee save) registers.
Go does not. Preserve them before calling into Go.

Change-Id: If60a6d8f71b51b1136a86eab2b90d964900becd7
Reviewed-on: https://go-review.googlesource.com/c/go/+/480657
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/cgo/asm_ppc64x.s