cpu: count reservednop in x64 form coverage #3553

Manually merged
github merged 4 commits from github-bot/gh-3551 into gh-pr/3551/base 2026-11-30 09:03:55 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-11-30 04:06 UTC · original
lambirou:cpu/reservednop-record → main · +92 −6 · 10 files · 4 commits · merged 2026-11-30 09:02 UTC

reservednop is already lowered (#1547), but the x64 coverage table misses it: cpu_hint_nop exercises the exact encodings without writing a record, and there is no .asm fixture for tools/form_coverage.py to associate with the test.

This adds a record-only manifest tests/cpu/hint_nop.asm (; coverage: record cpu_hint_nop), sets FORM_COVERAGE_RECORD on cpu_hint_nop, and writes the iced-decoded mnemonics after the test passes. CET endbr32/endbr64 are outside the Zen 2 reference groups, so the record keeps only the forms the reference can match: nop and reservednop.

Coverage

With a synthetic JUnit containing only cpu_hint_nop pass:

State x64 covered Gaps reservednop
Empty records 0 / 948 948 Integer reservednop unobserved
Record from the test 2 / 948 (nop, reservednop) 946 absent

The full-table delta is +1 (nop was already brought by flag_conditions.asm), so the expected table becomes 919/948 with 29 gaps instead of 30. The full CPU suite was not rerun in this worktree.

Tests

  • ctest --preset dev -R '^cpu_hint_nop$' -V -> pass; the record contains nop and reservednop.
  • tests/cpu/hint_nop_check.py passes with and without FORM_COVERAGE_RECORD: 13 accepted forms, 9 neighbours refused.
  • tests/form_coverage_check.py passes; docs_links_check.py covers 181 Markdown files and 726 links.
  • cpu_aot_amd_monitor_rdpru skips 77 on the Intel i5-12600KF; its static controls pass (6 sequences, 41 refusals, 579 Debug and /O2 controls, 6 mutants).

Not measured: the full CPU suite and native MONITORX/MWAITX/RDPRU on an AMD host.

The branch is based on red main 44a3ad5a. #3544 fixes the pre-existing startup_triage_run reason; until it lands, the Linux check here can fail on that unrelated test.

AI-assisted.

**@⁠lambirou** on GitHub · 2026-11-30 04:06 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3551) `lambirou:cpu/reservednop-record` → `main` · +92 −6 · 10 files · 4 commits · merged 2026-11-30 09:02 UTC `reservednop` is already lowered (#1547), but the x64 coverage table misses it: `cpu_hint_nop` exercises the exact encodings without writing a record, and there is no `.asm` fixture for `tools/form_coverage.py` to associate with the test. This adds a record-only manifest `tests/cpu/hint_nop.asm` (`; coverage: record cpu_hint_nop`), sets `FORM_COVERAGE_RECORD` on `cpu_hint_nop`, and writes the iced-decoded mnemonics after the test passes. CET `endbr32`/`endbr64` are outside the Zen 2 reference groups, so the record keeps only the forms the reference can match: `nop` and `reservednop`. ## Coverage With a synthetic JUnit containing only `cpu_hint_nop` pass: | State | x64 covered | Gaps | `reservednop` | |---|---:|---:|---| | Empty records | 0 / 948 | 948 | `Integer reservednop` unobserved | | Record from the test | 2 / 948 (`nop`, `reservednop`) | 946 | absent | The full-table delta is `+1` (`nop` was already brought by `flag_conditions.asm`), so the expected table becomes 919/948 with 29 gaps instead of 30. The full CPU suite was not rerun in this worktree. ## Tests - `ctest --preset dev -R '^cpu_hint_nop$' -V` -> pass; the record contains `nop` and `reservednop`. - `tests/cpu/hint_nop_check.py` passes with and without `FORM_COVERAGE_RECORD`: 13 accepted forms, 9 neighbours refused. - `tests/form_coverage_check.py` passes; `docs_links_check.py` covers 181 Markdown files and 726 links. - `cpu_aot_amd_monitor_rdpru` skips 77 on the Intel i5-12600KF; its static controls pass (6 sequences, 41 refusals, 579 Debug and /O2 controls, 6 mutants). Not measured: the full CPU suite and native MONITORX/MWAITX/RDPRU on an AMD host. The branch is based on red `main` 44a3ad5a. #3544 fixes the pre-existing `startup_triage_run` reason; until it lands, the Linux check here can fail on that unrelated test. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 04:10:40 +00:00
case6 of startup_resource_retire_title releases the newer wrapper and calls settle() without waiting for the queues. Every release signals a release-time fence on each registered queue, and settle() only resubmits the drain list, so a fence that has not completed leaves both wrappers retained and the stage fails with retained=131072/2 against 65536/1. Sync the direct and gated queues before settle(), as #3457 did for startup_resource_retire. The expectation is unchanged.

Refs #3507
github-bot changed target branch from main to gh-pr/3551/base 2026-11-30 09:03:54 +00:00
github manually merged commit 5807bdf39e into gh-pr/3551/base 2026-11-30 09:03:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.