]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: add AVX-512-CD and DQ, and derived "basic AVX-512"
authorAustin Clements <austin@google.com>
Thu, 12 Jun 2025 19:24:22 +0000 (15:24 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 5 Aug 2025 20:57:45 +0000 (13:57 -0700)
commite73afaae69bb6f098e3c1dbd98cfe134843910a1
tree7e10d3d6aca431d84eb91d4489571fe322ff2dae
parentcef381ba60e129e407ea5e5c1191e6ed571cf956
internal/cpu: add AVX-512-CD and DQ, and derived "basic AVX-512"

This adds detection for the CD and DQ sub-features of x86 AVX-512.

Building on these, we also add a "derived" AVX-512 feature that
bundles together the basic usable subset of subfeatures. Despite the F
in AVX-512-F standing for "foundation", AVX-512-F+BW+DQ+VL together
really form the basic usable subset of AVX-512 functionality. These
have also all been supported together by almost every CPU, and are
guaranteed by GOAMD64=v4, so there's little point in separating them
out.

This is a cherry-pick of CL 680899 from the dev.simd branch.

Change-Id: I34356502bd1853ba2372e48db0b10d55cffe07a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/693396
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_x86.go