mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 23:27:31 -04:00
cpu: add mips64x feature detection
Follow CL 200579 Change-Id: Ibedd6569bda3d7836ccb77a7746ed0e5df13c633 Reviewed-on: https://go-review.googlesource.com/c/sys/+/221698 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
5d559ad92b
commit
062a44052d
@@ -42,6 +42,14 @@ func TestARM64minimalFeatures(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestMIPS64Initialized(t *testing.T) {
|
||||
if runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
|
||||
if !cpu.Initialized {
|
||||
t.Fatal("Initialized expected true, got false")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// On ppc64x, the ISA bit for POWER8 should always be set on POWER8 and beyond.
|
||||
func TestPPC64minimalFeatures(t *testing.T) {
|
||||
// Do not run this with gccgo on ppc64, as it doesn't have POWER8 as a minimum
|
||||
|
||||
Reference in New Issue
Block a user