[dev.simd] simd: add AVX512 aggregated check

This added check could make AI test code generation's life easier.

Change-Id: I725f567100159acd1ee537e8b1e6cb9c9e2bc690
Reviewed-on: https://go-review.googlesource.com/c/go/+/683016
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
Junyang Shao 2025-06-20 19:35:35 +00:00
parent 0cdb2697d1
commit dd63b7aa0e
2 changed files with 13 additions and 16 deletions

View file

@ -11,10 +11,7 @@ package simd
import "internal/cpu"
func HasAVX512BW() bool {
return cpu.X86.HasAVX512BW
}
func HasAVX512VL() bool {
return cpu.X86.HasAVX512VL
// HasAVX512 checks AVX512 CPU feature F+CD+BW+DQ+VL.
func HasAVX512() bool {
return cpu.X86.HasAVX512
}