]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: reorder operands for some simd operations
authorDavid Chase <drchase@google.com>
Sat, 28 Jun 2025 15:05:44 +0000 (11:05 -0400)
committerDavid Chase <drchase@google.com>
Mon, 30 Jun 2025 16:43:57 +0000 (09:43 -0700)
commitead249a2e2989c6775235058d38f0e33afdf752a
tree521e50807b0b958406a7667e52fb36cf0b245e35
parent55665e1e3756c0181f7572c8766749695ed1516a
[dev.simd] cmd/compile: reorder operands for some simd operations

This adds support for one ad hoc reordering, which
requires a new intrinsic-to-ssa helper matching the
name that is used in the generator (and this in the
generated code).  In this case, it is opLen{2,3}Imm8_2I
which expects the immediate after the self (0) and
first (1) parameters to the method, and before the
mask if there is one.  I.e., the immediate is arg 2
in the call.

The changes to simdintrinsics and stubs are generated
by simdgen CL 684019.

Change-Id: Ia54aab9825d469a2f3efa6d1fb079242181c0ca6
Reviewed-on: https://go-review.googlesource.com/c/go/+/684776
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/ssagen/intrinsics.go
src/cmd/compile/internal/ssagen/simdintrinsics.go
src/simd/stubs_amd64.go