]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: on Power10, use xxspltidp for float constants
authorPaul E. Murphy <murp@ibm.com>
Fri, 29 Mar 2024 21:11:36 +0000 (16:11 -0500)
committerPaul Murphy <murp@ibm.com>
Thu, 4 Apr 2024 15:24:29 +0000 (15:24 +0000)
commitebf7747dbe0204a930815200b3cbc63a09967bf9
tree5060f3725293c5ff138926d105d058866584b09b
parent0f10ffec13a1eecb2b18e0b9d75773faf42e7ebd
cmd/internal/obj/ppc64: on Power10, use xxspltidp for float constants

Any normal float32 constant can be generated by this instruction;
use xxspltidp when possible. This prefixed instruction is much
faster than the two instruction load sequence from the
float32/float64 constant pool.

Change-Id: Id751d9ffdae71463adbde66427b986f0b2ef74c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/575555
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/internal/obj/ppc64/obj9.go
test/codegen/floats.go
test/codegen/math.go