]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] simd, cmd/compile: mark simd vectors uncomparable
authorCherry Mui <cherryyz@google.com>
Mon, 22 Sep 2025 15:57:19 +0000 (11:57 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 25 Sep 2025 17:32:03 +0000 (10:32 -0700)
commit5a78e1a4a1c79185e86b5c18efffba2a9b9d3739
treed09db312dec703a5ca96ea75df0b95250d65d591
parentbf00f5dfd6152c00881ce10275ed006e0b991c11
[dev.simd] simd, cmd/compile: mark simd vectors uncomparable

SIMD vector types are opqaue, and are expected to be operated with
methods. It is not always possible to compare the two vectors
efficiently. Instead of adding more magic to the compiler to
handle the == operator, mark the vector types uncomparable.

Change-Id: I4ca5d5e80ca7d8992dffa7b3c0386b75eb19cfa8
Reviewed-on: https://go-review.googlesource.com/c/go/+/705855
Reviewed-by: Junyang Shao <shaojunyang@google.com>
TryBot-Bypass: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/types/size.go
src/simd/_gen/simdgen/gen_simdTypes.go
src/simd/internal/simd_test/simd_test.go
src/simd/types_amd64.go