]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
simd/archsimd: add HasAVX2() guards to tests that need them
authorDavid Chase <drchase@google.com>
Fri, 19 Dec 2025 20:50:57 +0000 (15:50 -0500)
committerGopher Robot <gobot@golang.org>
Sat, 20 Dec 2025 15:49:02 +0000 (07:49 -0800)
commit7ecb1f36acab7b48d77991d58d456a34074a2d0e
tree41eef488f299f7728c1a890c02d66b0d5c340c48
parent70c22e0ad7d89504ab26fb157864f61a79cd4d47
simd/archsimd: add HasAVX2() guards to tests that need them

This may not be complete, because some 256-bit float operations
may be implemented with integer simd instead (in some cases there
is no float op).  (And some tests may have just been overlooked.)

Fixes #76866.

Change-Id: I90b1dfe039c322c484af916436fc6f6c50a31030
Reviewed-on: https://go-review.googlesource.com/c/go/+/731502
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/simd/archsimd/internal/simd_test/binary_test.go
src/simd/archsimd/internal/simd_test/compare_test.go
src/simd/archsimd/internal/simd_test/simd_test.go
src/simd/archsimd/internal/simd_test/unary_test.go