tooling: ignore MASM labels, directives and assignments in form coverage #1973
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1980"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by davutsimsekk on 2026-11-24T22:33:31Z.
tools/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.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:48:59Z.
Review: COMMENTED
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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:58:46Z.
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.