github.com/remobjects/goldbaselibrary@v0.0.0-20230924164425-d458680a936b/Source/Gold/internal/cpu/cpu_ppc64x_test.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ppc64 ppc64le 6 7 package cpu_test 8 9 import ( 10 . "internal/cpu" 11 "testing" 12 ) 13 14 func TestPPC64minimalFeatures(t *testing.T) { 15 if !PPC64.IsPOWER8 { 16 t.Fatalf("IsPOWER8 expected true, got false") 17 } 18 if !PPC64.HasVMX { 19 t.Fatalf("HasVMX expected true, got false") 20 } 21 if !PPC64.HasDFP { 22 t.Fatalf("HasDFP expected true, got false") 23 } 24 if !PPC64.HasVSX { 25 t.Fatalf("HasVSX expected true, got false") 26 } 27 if !PPC64.HasISEL { 28 t.Fatalf("HasISEL expected true, got false") 29 } 30 if !PPC64.HasVCRYPTO { 31 t.Fatalf("HasVCRYPTO expected true, got false") 32 } 33 }