src/runtime/testdata/testprog/cpuflags_amd64.go
raw| 1 | // Copyright 2025 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 main |
| 6 | |
| 7 | import "fmt" |
| 8 | |
| 9 | func init() { |
| 10 | register("CheckAVX", CheckAVX) |
| 11 | } |
| 12 | |
| 13 | func CheckAVX() { |
| 14 | checkAVX() |
| 15 | fmt.Println("OK") |
| 16 | } |
| 17 | |
| 18 | func checkAVX() |