From 489d3dafb791df8297f71ecf4e2c3c84ea11f6f2 Mon Sep 17 00:00:00 2001 From: Srinivas Pokala Date: Fri, 14 Nov 2025 14:21:37 +0100 Subject: [PATCH] math: switch s390x math.Pow to generic implementation The s390x assembly implementation of math.Pow incorrectly handles certain subnormal cases. This change switches the function to use the generic implementation instead. Updates #76247 Cq-Include-Trybots: luci.golang.try:gotip-linux-s390x Change-Id: I794339080d5a7acf79bbffaeb0214809006fd30c Reviewed-on: https://go-review.googlesource.com/c/go/+/720540 Reviewed-by: Vishwanatha HD Reviewed-by: Michael Pratt Auto-Submit: Michael Pratt Reviewed-by: Kiran M Vijay IBM LUCI-TryBot-Result: Go LUCI Reviewed-by: Mark Freeman --- src/math/arith_s390x.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/arith_s390x.go b/src/math/arith_s390x.go index 129156a9f6..2fda82fff4 100644 --- a/src/math/arith_s390x.go +++ b/src/math/arith_s390x.go @@ -129,7 +129,7 @@ func archExpm1(x float64) float64 func expm1TrampolineSetup(x float64) float64 func expm1Asm(x float64) float64 -const haveArchPow = true +const haveArchPow = false func archPow(x, y float64) float64 func powTrampolineSetup(x, y float64) float64 -- 2.52.0