diff options
| author | Junyang Shao <shaojunyang@google.com> | 2026-02-24 22:34:44 +0000 |
|---|---|---|
| committer | Junyang Shao <shaojunyang@google.com> | 2026-03-02 12:07:34 -0800 |
| commit | aa80d7a7e6bf97aa27a74cc5056ef270a2a0c2f4 (patch) | |
| tree | 66a8bdd949123efb45ad4f1b70519c10ff5c5109 /test/codegen | |
| parent | ba057f7950f93a7cbd249ad79ed763a526a9cbbf (diff) | |
| download | go-aa80d7a7e6bf97aa27a74cc5056ef270a2a0c2f4.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/simd.go | 6 |
1 files changed, 6 insertions, 0 deletions
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) +} |
