From aa80d7a7e6bf97aa27a74cc5056ef270a2a0c2f4 Mon Sep 17 00:00:00 2001 From: Junyang Shao Date: Tue, 24 Feb 2026 22:34:44 +0000 Subject: cmd/compile, simd/archsimd: add VPSRL immeidate peepholes Before this CL, the simdgen contains a sign check to selectively enable such rules for deduplication purposes. This left out `VPSRL` as it's only available in unsigned form. This CL fixes that. It looks like the previous documentation fix to SHA instruction might not had run go generate, so this CL also contains the generated code for that fix. There is also a weird phantom import in cmd/compile/internal/ssa/issue77582_test.go This CL also fixes that The trybot didn't complain? Change-Id: Ibbf9f789c1a67af1474f0285ab376bc07f17667e Reviewed-on: https://go-review.googlesource.com/c/go/+/748501 LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase --- test/codegen/simd.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/codegen') diff --git a/test/codegen/simd.go b/test/codegen/simd.go index 04e01944de..acec5421e4 100644 --- a/test/codegen/simd.go +++ b/test/codegen/simd.go @@ -104,3 +104,9 @@ func simdIsNaN512() { c := a.Or(b) c.ToInt64x8().StoreSlice(sinkInt64s) } + +func sftImmVPSRL() archsimd.Uint32x4 { + var x archsimd.Uint32x4 + // amd64:`VPSRLD\s\$1,\s.*$` + return x.ShiftAllRight(1) +} -- cgit v1.3