Skip to content

Commit b7e7467

Browse files
mengzhuogopherbot
authored andcommitted
test/codegen: add fsqrt test for riscv64
Add FSQRTD FSQRTS codegen tests for riscv64 Change-Id: I16ca3753ad1ba37afbd9d0f887b078e33f98fda0 Reviewed-on: https://go-review.googlesource.com/c/go/+/503275 Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]> Run-TryBot: M Zhuo <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent befec5d commit b7e7467

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/codegen/math.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func sqrt(x float64) float64 {
5757
// mips64/hardfloat:"SQRTD" mips64/softfloat:-"SQRTD"
5858
// wasm:"F64Sqrt"
5959
// ppc64x:"FSQRT"
60+
// riscv64: "FSQRTD"
6061
return math.Sqrt(x)
6162
}
6263

@@ -69,6 +70,7 @@ func sqrt32(x float32) float32 {
6970
// mips64/hardfloat:"SQRTF" mips64/softfloat:-"SQRTF"
7071
// wasm:"F32Sqrt"
7172
// ppc64x:"FSQRTS"
73+
// riscv64: "FSQRTS"
7274
return float32(math.Sqrt(float64(x)))
7375
}
7476

0 commit comments

Comments
 (0)