tests: pin the swaprel selects and the plain movrel entry-mask refusal #1868
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1875"
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 legacy-code-archaeologist on 2026-11-24T19:56:23Z.
Follow-up to @tedin7's reviews of #1785 (P3) and #1844 (P2). Tests and docs only;
tools/pixel_aot.pyis unchanged.What
v_swaprel_b32selects.check_swaprel_exacttranslates two swaps:m0 = 0x10002);m0masked to0x30001. The source offset then reaches v24 and v25, and the destination offset reaches v24 to v27.v1.0…v4.0). So the pin checks which side reads which old value, whichm0half each side uses, and that both selects exist, independent of how many lines come before the swap.v_movrels_b32_e32andv_movreld_b32_e64in the whole-quad region must be refused withInvalid v_movrels_b32 outside entry maskandInvalid v_movreld_b32 outside entry mask.docs/experiments.mdsays so in the two existing paragraphs.Evidence
I applied each mutation to
tools/pixel_aot.pyon its own and ranpython -B tests/pixel_aot_check.pywith no arguments, which needs no GPU. The four swaprel mutations are tedin7's from #1844.swap_svalinstead ofswap_dvalm0halves swappedm0_mask >> 16mask != "entry"refusal removedWithout a mutation, the run exits 0. The file is restored after each run.
On Windows 11 Pro 26100.9168 (WARP 10.0.26100.8972 and Quadro M1000M 32.0.15.7371, debug layer unavailable), at commit
36c70fa8:ctest --preset dev --no-tests=error -R '^pixel_aot_(swaprel|plain_movrel|dpp_movrel)_(warp|hardware)$'passes 6/6.tests/form_coverage_check.pyandtests/docs_links_check.pypass.🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:01:15Z.
Review: COMMENTED
Review of head
36c70fa84b(tests and docs only; no change to tools/pixel_aot.py).Result: no blocking findings. The new device-free pins in tests/pixel_aot_check.py kill real logic mutations of v_swaprel_b32 and the plain v_movrel* branch.
Commands run locally on Linux in a clean worktree at that head:
Mutations applied to tools/pixel_aot.py, each followed by tests/pixel_aot_check.py, then reverted (worktree clean afterwards):
Nit, non-blocking: the diff adds a stray blank line after the "Expected a numeric VGPR at v29" control tuple in _check_controls_inline.
Not covered by this review: the WARP / NVIDIA draw results quoted in docs/experiments.md were not re-run (Linux only).
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T20:05:05Z.
Both claimed pins hold
At the PR head, Windows 11 build 26300.9974, device-free:
Four mutations to
tools/pixel_aot.py, each reverted:m0: swap the two halves —src=[m0 & 0x3ff],dst=[(m0>>16) & 0x3ff]→ the reversem0:soff_expr/doff_exprswap the& 0x3ffand>> 16halvesInvalid {op} outside entry mask→pass(the plain movrel refusal this PR adds a case for)Invalid DPP movrel outside entry mask→passSo
check_swaprel_exactdistinguishes which side reads which old value and whichm0half each side uses — exactly what thedescription claims — and the plain-movrel entry-mask case is load-bearing too. The expected-text pin (renamed temporaries,
bank values named by literal) is doing its job: the two halves are not interchangeable under it.
Two neighbouring refusals are still unreached
Same sweep, two more
raisestatements in the same region:Invalid v_swaprel_b32 outside entry mask(line 5326)passInvalid scratch operation in non-entry mask(line 4125)passBoth are the "this form is only valid under the full entry mask" guard, one for
swapreland one for the scratch path. The PRcovers the plain movrel and DPP movrel versions of the same rule; these two are the same rule again and would be cheap to add
in the same style (a word with a partial mask, expect the named refusal). Not a blocker for this PR — noting them so the
follow-up does not have to rediscover them.
Docs
The
docs/experiments.mdline describes the two new pins in the same shape as the surrounding entries. Nothing to add.Verdict
Reviewed. Both P2/P3 items in the description are pinned by mutations I ran myself, and nothing in
tools/pixel_aot.pymoved,which is what a tests-and-docs change should look like.
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:10:14Z.
Review: COMMENTED
Review of head
36c70fa84bNot merged. Commands run locally:
x2w_pipe.py safe-merge-check --pr 1875 --head-sha 36c70fa84b1b78f47f74b25f30e5999e077ece4d(verdict BLOCK).Findings:
No code defects were reviewed, since the PR cannot merge in this state.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:35:38Z.
Review: COMMENTED
Review of head
5c243aba55(after the rebase). Tier B tests: docs/experiments.md and tests/pixel_aot_check.py only, no CMakeLists.txt change, one commit by the PR author. 0 P1, 0 P2.Commands executed locally:
git merge-tree --write-tree --name-only origin/main HEAD: exit 0, no conflictsgit diff --check origin/main...HEAD: exit 0python3 tests/docs_links_check.py: self-test passed, 18 Markdown files, 386 linkspython3 tests/bidi_controls_check.py: self-test passed, 1351 files, no bidirectional controlspython3 -B tests/pixel_aot_check.py(controls, Linux): exit 0pixel_aot_(plain_movrel|swaprel|dpp_movrel)_{warp,hardware}6/6 passed in Debug and in Release /O2;tests/pixel_aot_check.pyWindows Python check okMutations in tools/pixel_aot.py, each reverted with
git checkout -- .:Invalid {op} outside entry mask). The controls fail: the new loop forv_movrels_b32_e32no longer sees the expected message. Killed.swap_svalinstead ofswap_dval. The controls fail incheck_swaprel_exact(static lines differ). Killed.Notes, not blocking:
check_swaprel_exactcompares generated HLSL text, so a harmless change in naming or line order of the swap lowering will need the pinned lines updated. The renaming helper limits this, and the pin is what catches mutation 2 without a device.for bad_seqtuple in_check_controls_inline.AI-assisted; commands listed were executed locally.