]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] simd/_gen: fix sorting ops slices
authorAlexander Musman <alexander.musman@gmail.com>
Wed, 29 Oct 2025 13:49:28 +0000 (16:49 +0300)
committerGopher Robot <gobot@golang.org>
Tue, 4 Nov 2025 18:18:50 +0000 (10:18 -0800)
commitfe040658b20878bdbb9122ebc5446bc4104a7ddf
treec38b9dce56a2f260b8a4e1d7f7ea44afe8954515
parente452f4ac7de6c80e0be69a3c59ae739cfd806917
[dev.simd] simd/_gen: fix sorting ops slices

Fix sorting slices to avoid panic when there are more opsDataImm than
opsData (the problem occurs when generating only a subset of instructions
but it may be better to keep them sorted by their own names anyway).

Change-Id: Iea7fe61259e8416f16c46158d87c84b1d7a3076d
Reviewed-on: https://go-review.googlesource.com/c/go/+/716121
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
src/cmd/compile/internal/ssa/opGen.go
src/simd/_gen/simdgen/gen_simdMachineOps.go