mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] internal/cpu: add GFNI feature check
This CL amends HasAVX512 flag with GFNI check. This is needed because our SIMD API supports Galois Field operations. Change-Id: I3e957b7b2215d2b7b6b8a7a0ca3e2e60d453b2e5 Reviewed-on: https://go-review.googlesource.com/c/go/+/685295 Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
0710cce6eb
commit
1ee72a15a3
4 changed files with 41 additions and 31 deletions
|
|
@ -38,7 +38,7 @@ func TestType(t *testing.T) {
|
|||
v.y = &y
|
||||
sink = y
|
||||
|
||||
if !simd.HasAVX512() {
|
||||
if !simd.HasAVX512GFNI() {
|
||||
t.Skip("Test requires HasAVX512, not available on this hardware")
|
||||
return
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ func TestReflectMethod(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestVectorConversion(t *testing.T) {
|
||||
if !simd.HasAVX512() {
|
||||
if !simd.HasAVX512GFNI() {
|
||||
t.Skip("Test requires HasAVX512, not available on this hardware")
|
||||
return
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ func TestVectorConversion(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestMaskConversion(t *testing.T) {
|
||||
if !simd.HasAVX512() {
|
||||
if !simd.HasAVX512GFNI() {
|
||||
t.Skip("Test requires HasAVX512, not available on this hardware")
|
||||
return
|
||||
}
|
||||
|
|
@ -144,7 +144,7 @@ func TestSub(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestMaskedAdd(t *testing.T) {
|
||||
if !simd.HasAVX512() {
|
||||
if !simd.HasAVX512GFNI() {
|
||||
t.Skip("Test requires HasAVX512, not available on this hardware")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue