aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/bits.go
diff options
context:
space:
mode:
authorPaul Murphy <paumurph@redhat.com>2026-03-27 19:56:25 +0000
committerGopher Robot <gobot@golang.org>2026-03-27 18:07:27 -0700
commit880f126233a377ee656612e68710eefe7964f646 (patch)
treebc307eb3a7b7e884fe3bc76da1b3855b0176ef19 /test/codegen/bits.go
parentc7238e81ca45af755a2c7770950eb163efa3495f (diff)
downloadgo-880f126233a377ee656612e68710eefe7964f646.tar.xz
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 <khr@google.com> Auto-Submit: Paul Murphy <paumurph@redhat.com> Reviewed-by: Jorropo <jorropo.pgm@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'test/codegen/bits.go')
-rw-r--r--test/codegen/bits.go4
1 files changed, 2 insertions, 2 deletions
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)