diff options
| author | Keith Randall <khr@golang.org> | 2026-03-27 13:28:19 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2026-03-27 21:32:35 -0700 |
| commit | 1fd68799c39bd4a3f7e16a1ee24fcaca3efe5357 (patch) | |
| tree | 9c5b027a270245c0aa0e72ebb4bfc948a97c1caf /test/codegen | |
| parent | 47c0cd9929b82a0d95a8d0dffda47604081565ea (diff) | |
| download | go-1fd68799c39bd4a3f7e16a1ee24fcaca3efe5357.tar.xz | |
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 <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Julian Zhu <jz531210@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/floats.go | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |
