mirror of git://gcc.gnu.org/git/gcc.git
34 lines
720 B
Go
34 lines
720 B
Go
// Copyright 2018 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.
|
|
|
|
// +build ppc64 ppc64le
|
|
|
|
package cpu_test
|
|
|
|
import (
|
|
. "internal/cpu"
|
|
"testing"
|
|
)
|
|
|
|
func TestPPC64minimalFeatures(t *testing.T) {
|
|
if !PPC64.IsPOWER8 {
|
|
t.Fatalf("IsPOWER8 expected true, got false")
|
|
}
|
|
if !PPC64.HasVMX {
|
|
t.Fatalf("HasVMX expected true, got false")
|
|
}
|
|
if !PPC64.HasDFP {
|
|
t.Fatalf("HasDFP expected true, got false")
|
|
}
|
|
if !PPC64.HasVSX {
|
|
t.Fatalf("HasVSX expected true, got false")
|
|
}
|
|
if !PPC64.HasISEL {
|
|
t.Fatalf("HasISEL expected true, got false")
|
|
}
|
|
if !PPC64.HasVCRYPTO {
|
|
t.Fatalf("HasVCRYPTO expected true, got false")
|
|
}
|
|
}
|