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/mathbits.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/codegen/mathbits.go') diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go index 1ddb5c75cc..fe9c4eceb5 100644 --- a/test/codegen/mathbits.go +++ b/test/codegen/mathbits.go @@ -19,6 +19,8 @@ func LeadingZeros(n uint) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"CNTLZD" + // ppc64:"CNTLZD" return bits.LeadingZeros(n) } @@ -29,6 +31,8 @@ func LeadingZeros64(n uint64) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"CNTLZD" + // ppc64:"CNTLZD" return bits.LeadingZeros64(n) } @@ -39,6 +43,8 @@ func LeadingZeros32(n uint32) int { // arm:"CLZ" arm64:"CLZW" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"CNTLZW" + // ppc64:"CNTLZW" return bits.LeadingZeros32(n) } @@ -49,6 +55,8 @@ func LeadingZeros16(n uint16) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"CNTLZD" + // ppc64:"CNTLZD" return bits.LeadingZeros16(n) } @@ -59,6 +67,8 @@ func LeadingZeros8(n uint8) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"CNTLZD" + // ppc64:"CNTLZD" return bits.LeadingZeros8(n) } @@ -73,6 +83,8 @@ func Len(n uint) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"SUBC","CNTLZD" + // ppc64:"SUBC","CNTLZD" return bits.Len(n) } @@ -113,6 +125,8 @@ func Len16(n uint16) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"SUBC","CNTLZD" + // ppc64:"SUBC","CNTLZD" return bits.Len16(n) } @@ -123,6 +137,8 @@ func Len8(n uint8) int { // arm:"CLZ" arm64:"CLZ" // mips:"CLZ" // wasm:"I64Clz" + // ppc64le:"SUBC","CNTLZD" + // ppc64:"SUBC","CNTLZD" return bits.Len8(n) } -- cgit v1.3