]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: improve large prologue generation
authorPaul Murphy <murp@redhat.com>
Wed, 8 Oct 2025 19:34:09 +0000 (14:34 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 21 Oct 2025 14:41:30 +0000 (07:41 -0700)
commit694182d77b1a0e3676214ad0e361bdbdafde33a1
treedc4c23077d1e46255003446cd847709e49d5bc54
parentb0dcb955421e1fe8021dbe23b8dd8d2b184da395
cmd/internal/obj/ppc64: improve large prologue generation

Avoid needing an unsafe section to store LR and adjust SP
for large constants by using the stdux (MOVDU) instruction.

This is also a few instructions shorter as the large
constant adjustment is only created once.

Change-Id: I6ff7a24181cdadb1846a33129fc148dcf59b76d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/710197
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/ppc64/obj9.go