]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile, simd: jump table for imm ops
authorJunyang Shao <shaojunyang@google.com>
Fri, 8 Aug 2025 17:31:45 +0000 (17:31 +0000)
committerJunyang Shao <shaojunyang@google.com>
Mon, 11 Aug 2025 17:49:50 +0000 (10:49 -0700)
commit38b76bf2a3b4a2e1bd512f32907d7f2d3de3b71a
tree5797bd79f59f0cf58af3e92e36ff4ac081cd8c9c
parent94d72355f662a1c8229db661cc068ea8e901641c
[dev.simd] cmd/compile, simd: jump table for imm ops

This CL fixes some errors in prog generation for imm operations, please
see the changes in ssa.go for details.

This CL also implements the jump table for non-const immediate arg. The
current implementation exhaust 0-255, the bound-checked version will be
in the next CL.

This CL is partially generated by CL 694375.

Change-Id: I75fe9900430b4fca5b39b0c0958a13b20b1104b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/694395
Reviewed-by: David Chase <drchase@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/ssa/_gen/simdAMD64.rules
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
src/cmd/compile/internal/ssa/_gen/simdgenericOps.go
src/cmd/compile/internal/ssa/check.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssagen/intrinsics.go
src/simd/ops_amd64.go
src/simd/simd_test.go