From 425a88193ca39e82dc3dbcae22b98dbdfd98a04c Mon Sep 17 00:00:00 2001 From: David Chase Date: Wed, 10 Dec 2025 16:50:21 -0500 Subject: 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 Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- test/codegen/floats.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/codegen') 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))) } -- cgit v1.3