aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/math.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/math.go')
-rw-r--r--test/codegen/math.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/codegen/math.go b/test/codegen/math.go
index ad154e0c40..7c76d26b38 100644
--- a/test/codegen/math.go
+++ b/test/codegen/math.go
@@ -60,6 +60,8 @@ func sqrt(x float64) float64 {
// mips/hardfloat:"SQRTD" mips/softfloat:-"SQRTD"
// mips64/hardfloat:"SQRTD" mips64/softfloat:-"SQRTD"
// wasm:"F64Sqrt"
+ // ppc64le:"FSQRT"
+ // ppc64:"FSQRT"
return math.Sqrt(x)
}
@@ -71,6 +73,8 @@ func sqrt32(x float32) float32 {
// mips/hardfloat:"SQRTF" mips/softfloat:-"SQRTF"
// mips64/hardfloat:"SQRTF" mips64/softfloat:-"SQRTF"
// wasm:"F32Sqrt"
+ // ppc64le:"FSQRTS"
+ // ppc64:"FSQRTS"
return float32(math.Sqrt(float64(x)))
}