]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: generate smaller machine code for OR/XOR of uint32 values
authorPaul E. Murphy <murp@ibm.com>
Mon, 27 Nov 2023 23:05:56 +0000 (17:05 -0600)
committerPaul Murphy <murp@ibm.com>
Wed, 28 Feb 2024 22:57:39 +0000 (22:57 +0000)
commit288615ddb57a79fa78c6f13b829bd8daeeff8fa1
tree4fc0c594d544b4a944ac8efdbec47c8eb1b5c062
parenta05ea985c5fdb22ef606706f2b1a99eec5574c9c
cmd/internal/obj/ppc64: generate smaller machine code for OR/XOR of uint32 values

These binary operations can be done in two sequential instructions instead of loading a
constant into REGTMP and doing the binary op.

Change-Id: Ie0ab863f9e81afad140b92b265bca4d3f0fe90b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/565215
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/asm9.go