]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: generate big uint32 values in register
authorPaul E. Murphy <murp@ibm.com>
Fri, 21 Oct 2022 14:19:47 +0000 (09:19 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 26 Oct 2022 19:47:19 +0000 (19:47 +0000)
commit4e6f90fecd377777b08a151e1712b6d9180630de
tree8d71c70bec30bc3f6831b6921328664cd7e48ac8
parentf9ee56145bd8aa802b91db9465564cae5596966b
cmd/internal/obj/ppc64: generate big uint32 values in register

When using "MOVD $const, Rx", any 32b constant can be generated in
register quickly. Avoid transforming big uint32 values into a load.

And, fix the instance in runtime.usleep where I discovered this.

Change-Id: I46e156d7edf200f85b5b61162f00223c0ad81fe2
Reviewed-on: https://go-review.googlesource.com/c/go/+/444815
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/obj9.go
src/runtime/sys_linux_ppc64x.s