]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix SIMD type parameter instantiation
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 5 Feb 2026 14:16:55 +0000 (21:16 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 6 Feb 2026 17:36:03 +0000 (09:36 -0800)
commit38ed6147485232f9562e87970c56f4491c082998
treeb579e6e0cbd4f270dcfd8be6b8f8224beb4b8966
parentae842f71461ad178eff7283bc36e150fe284b9aa
cmd/compile: fix SIMD type parameter instantiation

When a SIMD type is used to instantiate a type parameter, the SIMD's
underlying type is its shape. This shape type must be marked as a SIMD
type, otherwise, the backend will confuse and does not know how to put
this SIMD type to proper registers.

Fixing this by marking a type as SIMD type if its underlying is already
a SIMD one.

Fixes #77444

Change-Id: I745c474469889c94bc68435472ba4820e9f752a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/742320
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/types/type.go
src/simd/archsimd/internal/simd_test/simd_test.go