]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/codegen/math.go
test/codegen: add fsqrt test for riscv64
[gostls13.git] / test / codegen / math.go
index e630530965e8dca18dd5cc5531db99bdc0d71d52..6a7d304afdc676afdcc501f3816079b3c3ad624a 100644 (file)
@@ -57,6 +57,7 @@ func sqrt(x float64) float64 {
        // mips64/hardfloat:"SQRTD" mips64/softfloat:-"SQRTD"
        // wasm:"F64Sqrt"
        // ppc64x:"FSQRT"
+       // riscv64: "FSQRTD"
        return math.Sqrt(x)
 }
 
@@ -69,6 +70,7 @@ func sqrt32(x float32) float32 {
        // mips64/hardfloat:"SQRTF" mips64/softfloat:-"SQRTF"
        // wasm:"F32Sqrt"
        // ppc64x:"FSQRTS"
+       // riscv64: "FSQRTS"
        return float32(math.Sqrt(float64(x)))
 }