tooling: ignore MASM labels, directives and assignments in form coverage #1980
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1980
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1980/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@davutsimsekk on GitHub · 2026-11-24 22:33 UTC · original
davutsimsekk:fix/form-coverage-masm-tokens→main· +12 −3 · 2 files · 2 commits · merged 2026-11-24 23:04 UTCtools/form_coverage.py:masm_mnemonicstreated five non-instructions from the repository's MASM fixtures as mnemonics:@@:anonymous labels (tests/cpu/adx.asm,bit_ops.asm, …)elseifdef(chained.asm)ifidni(flag_conditions.asm)rept(exe_tls_template.asm)word_indexfrom the assembly-time assignmentword_index = 0They leaked into
fixture_forms_not_in_reference, so the report claimed fixtures used forms the reference does not contain. Merged #227 had made that list empty; the guard was later narrowed to three old tokens.This strips
@@:labels, adds the missing conditional-assembly directives, and skipsname = expression. It only affects the coverage report; no instruction measurement changes.Test
python -B tests/form_coverage_check.pynow asserts the five-token list is empty and checks a synthetic source with@@:,REPT,IFIDNIand an assignment.No game data or GPU was used.
@R0Y00 on GitHub · 2026-11-24 22:58 UTC · original
Kept the existing isolated branch and label fixture on its original input, with the new anonymous-label and directive assertions running separately. The complete Windows form_coverage_check.py passed.
@tedin7 on GitHub · 2026-11-24 22:48 UTC · original · reviewed
Review of head
5b2dadd713(comment only, no approval).Diff read in full (2 files, tooling and its test only; no CMakeLists change, no new third-party content). Anonymous labels (
@@:),word_index = 0assignments and theIFIDNI/REPT/ELSEIFDEFdirectives are no longer reported as instructions. The new test assertions match that intent. P1: 0. P2: 0.Commands executed locally:
git merge-tree --write-tree --name-only origin/main HEAD: clean, no conflicts.gh pr checks 1980: Windows, Linux and gfx1013 jobs pass; the /O2 job and chart job are skipped.python3 tests/docs_links_check.py: PASS (18 files, 386 links).python3 tests/bidi_controls_check.py: PASS.git diff --check origin/main...HEAD: PASS.python3 tests/form_coverage_check.pyon Linux: cannot run here (iced_x86not installed), so the new assertion was exercised throughmasm_mnemonicsdirectly instead.words[1] == "="skip. The new snippet returns an extraword_index, so it is caught.ifidniandreptfromMASM_DIRECTIVES. Both leak into the result, so it is caught.python3 x2w_pipe.py win2025 1980 --wait 900, run twice:form_coveragePASSED, butcpu_aot_trap(#679) FAILED both times withFileNotFoundError ... cpu_trap_lifted_o2.dll. That is a build-output lookup in a test the PR does not touch, so it is probably a node or slot problem rather than this change. It still means the local Win2025 run is not green.Result: no defects found in the change. Not merging from here because the local Win2025 run is not green.
AI-assisted; commands listed were executed locally.