From d09c6ac41769cc782ec982ffc8f20fbd796791f8 Mon Sep 17 00:00:00 2001 From: Archana R Date: Tue, 14 Jun 2022 09:24:32 -0500 Subject: 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 Run-TryBot: Archana Ravindar Reviewed-by: Than McIntosh Reviewed-by: Paul Murphy Reviewed-by: Ian Lance Taylor --- test/codegen/math.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/codegen/math.go') 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))) } -- cgit v1.3-5-g9baa