From 1fd68799c39bd4a3f7e16a1ee24fcaca3efe5357 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 27 Mar 2026 13:28:19 -0700 Subject: test/codegen: check mips64 sqrt/abs code only for hardfloat Softfloat doesn't use the hardware instructions. Followon to CL 739520 + CL 757300 Change-Id: Ic271cd5567c62933d2d0c01d8834f9bf07e31061 Reviewed-on: https://go-review.googlesource.com/c/go/+/760520 Auto-Submit: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Julian Zhu LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- test/codegen/floats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/codegen') diff --git a/test/codegen/floats.go b/test/codegen/floats.go index 21cfa1d590..ad9713b75f 100644 --- a/test/codegen/floats.go +++ b/test/codegen/floats.go @@ -316,7 +316,7 @@ func WideRoundToEvenNarrow(x float32) float32 { func WideSqrtNarrow(x float32) float32 { // arm64:"FSQRTS" -"FCVTSD" -"FCVTDS" // loong64:"SQRTF" -"MOVFD" -"MOVDF" - // mips64:"SQRTF" -"MOVFD" -"MOVDF" + // mips64/hardfloat:"SQRTF" -"MOVFD" -"MOVDF" // riscv64:"FSQRTS" -"FCVTDS" -"FCVTSD" // wasm:"F32Sqrt" -"F64PromoteF32" -"F32DemoteF64" return float32(math.Sqrt(float64(x))) @@ -325,7 +325,7 @@ func WideSqrtNarrow(x float32) float32 { func WideAbsNarrow(x float32) float32 { // arm64:"FABSS" -"FCVTSD" -"FCVTDS" // loong64:"ABSF" -"MOVFD" -"MOVDF" - // mips64:"ABSF" -"MOVFD" -"MOVDF" + // mips64/hardfloat:"ABSF" -"MOVFD" -"MOVDF" // riscv64:"FABSS" -"FCVTDS" -"FCVTSD" // wasm:"F32Abs" -"F64PromoteF32" -"F32DemoteF64" return float32(math.Abs(float64(x))) -- cgit v1.3-5-g9baa