]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.simd] cmd/compile, simd: update generated files
authorAustin Clements <austin@google.com>
Mon, 11 Aug 2025 20:03:41 +0000 (16:03 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 11 Aug 2025 20:45:36 +0000 (13:45 -0700)
This CL is generated by x/arch CL 694861

Change-Id: I2af1aaacbe9374d98b13be972713fc2cb1177927
Reviewed-on: https://go-review.googlesource.com/c/go/+/694918
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Austin Clements <austin@google.com>

src/simd/cpu.go

index 7bc511652549c2b4ac2d3be35cdfb9eb86f7ff69..cbde9a8e1ff2eba923eb59d997027328c52f2064 100644 (file)
@@ -1,62 +1,92 @@
-// Copyright 2025 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Code generated by x/arch/internal/simdgen using 'go run . -xedPath $XED_PATH -o godefs -goroot $GOROOT go.yaml types.yaml categories.yaml'; DO NOT EDIT.
 
 //go:build goexperiment.simd
 
-// The build condition == if the experiment is not on, cmd/api TestCheck will see this and complain
-// see also go/doc/comment, where "simd" is inserted to the package list of the experiment is not on.
-
 package simd
 
 import "internal/cpu"
 
-// HasAVX checks AVX CPU feature.
+// HasAVX returns whether the CPU supports the AVX feature.
+//
+// HasAVX is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX() bool {
        return cpu.X86.HasAVX
 }
 
-// HasAVXVNNI checks AVX CPU feature VNNI.
-func HasAVXVNNI() bool {
-       return cpu.X86.HasAVXVNNI
-}
-
-// HasAVX2 checks AVX2 CPU feature.
+// HasAVX2 returns whether the CPU supports the AVX2 feature.
+//
+// HasAVX2 is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX2() bool {
        return cpu.X86.HasAVX2
 }
 
-// HasAVX512 checks AVX512 CPU feature F+CD+BW+DQ+VL.
+// HasAVX512 returns whether the CPU supports the AVX512F+CD+BW+DQ+VL features.
+//
+// These five CPU features are bundled together, and no use of AVX-512
+// is allowed unless all of these features are supported together.
+// Nearly every CPU that has shipped with any support for AVX-512 has
+// supported all five of these features.
+//
+// HasAVX512 is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512() bool {
        return cpu.X86.HasAVX512
 }
 
-// HasAVX512GFNI checks AVX512 CPU feature GFNI.
+// HasAVX512BITALG returns whether the CPU supports the AVX512BITALG feature.
+//
+// HasAVX512BITALG is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
+func HasAVX512BITALG() bool {
+       return cpu.X86.HasAVX512BITALG
+}
+
+// HasAVX512GFNI returns whether the CPU supports the AVX512GFNI feature.
+//
+// HasAVX512GFNI is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512GFNI() bool {
        return cpu.X86.HasAVX512GFNI
 }
 
-// HasAVX512VBMI checks AVX512 CPU feature VBMI
+// HasAVX512VBMI returns whether the CPU supports the AVX512VBMI feature.
+//
+// HasAVX512VBMI is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512VBMI() bool {
        return cpu.X86.HasAVX512VBMI
 }
 
-// HasAVX512VBMI2 checks AVX512 CPU feature VBMI2
+// HasAVX512VBMI2 returns whether the CPU supports the AVX512VBMI2 feature.
+//
+// HasAVX512VBMI2 is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512VBMI2() bool {
        return cpu.X86.HasAVX512VBMI2
 }
 
-// HasAVX512VNNI checks AVX512 CPU feature VNNI
+// HasAVX512VNNI returns whether the CPU supports the AVX512VNNI feature.
+//
+// HasAVX512VNNI is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512VNNI() bool {
        return cpu.X86.HasAVX512VNNI
 }
 
-// HasAVX512VPOPCNTDQ checks AVX512 CPU feature VPOPCNTDQ
+// HasAVX512VPOPCNTDQ returns whether the CPU supports the AVX512VPOPCNTDQ feature.
+//
+// HasAVX512VPOPCNTDQ is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
 func HasAVX512VPOPCNTDQ() bool {
        return cpu.X86.HasAVX512VPOPCNTDQ
 }
 
-// HasAVX512BITALG checks AVX512 CPU feature BITALG
-func HasAVX512BITALG() bool {
-       return cpu.X86.HasAVX512BITALG
+// HasAVXVNNI returns whether the CPU supports the AVXVNNI feature.
+//
+// HasAVXVNNI is defined on all GOARCHes, but will only return true on
+// GOARCH amd64.
+func HasAVXVNNI() bool {
+       return cpu.X86.HasAVXVNNI
 }