src/internal/runtime/gc/scan/expand_amd64_test.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 | //go:build amd64 |
| 6 | |
| 7 | package scan_test |
| 8 | |
| 9 | import ( |
| 10 | "internal/runtime/gc/scan" |
| 11 | "testing" |
| 12 | ) |
| 13 | |
| 14 | func TestExpandAVX512(t *testing.T) { |
| 15 | if !scan.CanAVX512() { |
| 16 | t.Skip("no AVX512") |
| 17 | } |
| 18 | testExpand(t, scan.ExpandAVX512) |
| 19 | } |