From 880f126233a377ee656612e68710eefe7964f646 Mon Sep 17 00:00:00 2001 From: Paul Murphy Date: Fri, 27 Mar 2026 19:56:25 +0000 Subject: test/codegen: fix ppc64x rldicl bit test The prove pass removes superfluous bit masking. This was meant to test the edge cases of the ppc64 folding rules which are exactly the cases the prove pass now removes. Fixes #78403 Change-Id: I45eeac58e01b42e19b8a06bb0d7af96c616ccbff Reviewed-on: https://go-review.googlesource.com/c/go/+/760307 Reviewed-by: Keith Randall Auto-Submit: Paul Murphy Reviewed-by: Jorropo LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- test/codegen/bits.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/codegen/bits.go') diff --git a/test/codegen/bits.go b/test/codegen/bits.go index 097d65e28a..ca9d857164 100644 --- a/test/codegen/bits.go +++ b/test/codegen/bits.go @@ -606,8 +606,8 @@ func bitsRotateAndMask(io64 [8]uint64, io32 [4]uint32, io16 [4]uint16, io8 [4]ui io64[1] = io64[1] & 0x0000FFFFFFFFFFFF // ppc64x: -"SRD", -"AND", "RLDICL [$]60, R[0-9]*, [$]16, R" io64[2] = (io64[2] >> 4) & 0x0000FFFFFFFFFFFF - // ppc64x: -"SRD", -"AND", "RLDICL [$]36, R[0-9]*, [$]28, R" - io64[3] = (io64[3] >> 28) & 0x0000FFFFFFFFFFFF + // ppc64x: -"SRD" -"AND" "RLDICL [$]36, R[0-9]*, [$]29, R" + io64[3] = (io64[3] >> 28) & 0x00000007FFFFFFFF // ppc64x: "MOVWZ", "RLWNM [$]1, R[0-9]*, [$]28, [$]3, R" io64[4] = uint64(bits.RotateLeft32(io32[0], 1) & 0xF000000F) -- cgit v1.3-6-g1900