github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/src/internal/cpu/cpu_arm64_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 package cpu_test 6 7 import ( 8 . "internal/cpu" 9 "runtime" 10 "testing" 11 ) 12 13 func TestARM64minimalFeatures(t *testing.T) { 14 switch runtime.GOOS { 15 case "linux", "android": 16 default: 17 t.Skipf("%s/arm64 is not supported", runtime.GOOS) 18 } 19 20 if !ARM64.HasASIMD { 21 t.Fatalf("HasASIMD expected true, got false") 22 } 23 if !ARM64.HasFP { 24 t.Fatalf("HasFP expected true, got false") 25 } 26 }