mirror of
https://github.com/golang/go
synced 2024-09-29 11:34:32 -06:00
internal/cpu: don't run SSE3 disable test if GOAMD64>1
That feature can't be disabled if the microarchitectural version requires it. Change-Id: Iad8aaa8089d2f023e9ae5044c6da33224499f09b Reviewed-on: https://go-review.googlesource.com/c/go/+/392994 Run-TryBot: Keith Randall <khr@golang.org> Trust: Keith Randall <khr@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Martin Möhrmann <martin@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
b054c7dc17
commit
9b112cec83
@ -19,6 +19,9 @@ func TestX86ifAVX2hasAVX(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDisableSSE3(t *testing.T) {
|
||||
if GetGOAMD64level() > 1 {
|
||||
t.Skip("skipping test: can't run on GOAMD64>v1 machines")
|
||||
}
|
||||
runDebugOptionsTest(t, "TestSSE3DebugOption", "cpu.sse3=off")
|
||||
}
|
||||
|
||||
|
11
src/internal/cpu/export_x86_test.go
Normal file
11
src/internal/cpu/export_x86_test.go
Normal file
@ -0,0 +1,11 @@
|
||||
// Copyright 2022 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.
|
||||
|
||||
//go:build 386 || amd64
|
||||
|
||||
package cpu
|
||||
|
||||
var (
|
||||
GetGOAMD64level = getGOAMD64level
|
||||
)
|
Loading…
Reference in New Issue
Block a user