]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] 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)
committerAustin Clements <austin@google.com>
Fri, 13 Jun 2025 14:16:03 +0000 (07:16 -0700)
commit9b9af3d6386d7564d71ff61468cea597bf0511bc
tree3e1a479af66d059658a8294a3b23b8bef5c5d303
parentdfa6c7426316fb81c5f29b260b2de7822680ffd3
[dev.simd] 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.

Change-Id: I34356502bd1853ba2372e48db0b10d55cffe07a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/680899
Reviewed-by: Cherry Mui <cherryyz@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