mirror of
https://github.com/golang/go.git
synced 2025-11-01 17:20:56 +00:00
test/codegen: updated multiple tests to verify on ppc64,ppc64le
Updated multiple tests in test/codegen: math.go, mathbits.go, shift.go and slices.go to verify on ppc64/ppc64le as well Change-Id: Id88dd41569b7097819fb4d451b615f69cf7f7a94 Reviewed-on: https://go-review.googlesource.com/c/go/+/412115 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Archana Ravindar <aravind5@in.ibm.com> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Paul Murphy <murp@ibm.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
2c46cc8b89
commit
d09c6ac417
4 changed files with 86 additions and 0 deletions
|
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue