diff options
| author | David Chase <drchase@google.com> | 2025-12-10 16:50:21 -0500 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2026-03-01 11:58:06 -0800 |
| commit | 425a88193ca39e82dc3dbcae22b98dbdfd98a04c (patch) | |
| tree | 78d307d1621938130a8d1cfa4a1bd41eaa8786ea /test/codegen | |
| parent | 7336381cd16f81b7e34a8e8592a200b916989988 (diff) | |
| download | go-425a88193ca39e82dc3dbcae22b98dbdfd98a04c.tar.xz | |
cmd/compile: (arm64) optimize float32(round64(float64(x)))
Not a fix because there are other architectures
still to be done.
Updates #75463.
Change-Id: Ifca03975023e4e5d0ffa98d1f877314a1a291be0
Reviewed-on: https://go-review.googlesource.com/c/go/+/729161
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/floats.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/codegen/floats.go b/test/codegen/floats.go index 21735ab19d..bf9e70d43e 100644 --- a/test/codegen/floats.go +++ b/test/codegen/floats.go @@ -282,11 +282,13 @@ func Float64ConstantStore(p *float64) { func WideCeilNarrow(x float32) float32 { // amd64/v3:"ROUNDSS" + // arm64:"FRINTPS" return float32(math.Ceil(float64(x))) } func WideTruncNarrow(x float32) float32 { // amd64/v3:"ROUNDSS" + // arm64:"FRINTZS" return float32(math.Trunc(float64(x))) } |
