fix(cmd): honour //go:build in the corpus audit
Test / test (push) Successful in 2m32s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-23 21:03:16 +02:00
parent 74d6b90d69
commit 26c5008136
5 changed files with 247 additions and 18 deletions
+7 -4
View File
@@ -129,10 +129,13 @@ can emit today is narrower, and a recognised but unencodable instruction is
reported as an explicit error, never as a wrong byte.
The same measurement runs over GOROOT's whole assembly corpus:
`gasm audit-instructions --corpus` reports 291 of 353 attemptable files
(82.4 %) assembling for every target architecture today (files named for
other Go ports are counted but never attempted), with the top failure
reasons per architecture; the number moves with every release.
`gasm audit-instructions --corpus` reports every real-code GOROOT assembly
file (the tree without testdata) assembling for every target its build
admits: 250 of 250, 100 %. Over the whole tree including testdata the
measure is 271 of 322 attemptable (84.2 %); files named for other Go ports
are counted but never attempted, and `//go:build` constraints decide which
targets attempt a file at all, exactly as the build does. The number moves
with every release.
### Validation status