tests: pin the SDWA v_movrel* selections without a GPU #1972
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1979"
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-24T22:31:47Z.
Follow-up to @ChazY11's review of #1934 (Refs #1917). Tests and docs only;
tools/pixel_aot.pyis unchanged.What
The device-free
pixel_aot_check.pyrun only asserted thatSDWA_MOVREL_BODYtranslates. That is why replacing thesdwa_source(...)call withpassstill passed it; the GPU draw caught it.SDWA_MOVREL_PINSnow lists the exact expression each source and destination selection of the body produces, with temporaries as\d+, and how often it must appear: once per static move, once per reachable destination of a dynamic one.check_sdwa_movrel_pinsruns from the no-argument controls.The pins cover:
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 file is restored after each run.sdwa_source(...)replaced bypass(the reported survivor)sextignored (sdwa_source(..., False))sdwa_dest(...)replaced bypasssdwa_dest(...)droppedUNUSED_PRESERVEtreated asUNUSED_PADWithout a mutation, the run exits 0. Windows 11 Pro 26100.9168, commit
2e5fdca4.tests/form_coverage_check.pyandtests/docs_links_check.pypass.🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:39:26Z.
Review: COMMENTED
Review of head
2e5fdca416Result: 0 P1, 0 P2. Clean-room check: the change touches only
tests/pixel_aot_check.pyand one docs paragraph; no CMake change, no third-party material.What the change does:
check_sdwa_movrel_pinsmatches the generated HLSL ofSDWA_MOVREL_BODYagainst ten exact selection expressions (with a fixed occurrence count each), so the SDWA v_movrel* source and destination selections are pinned without a GPU.Commands executed locally and results:
python3 -B tests/pixel_aot_check.py: rc=0python3 tests/docs_links_check.py: pass (18 files, 387 links)python3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleangit merge-tree --write-tree --name-only origin/main HEAD: no conflictspython3 -B tests/pixel_aot_check.pyrc=0;ctest -R "^pixel_aot_(sdwa_movrel|smovrel)_"4/4 passed in both phasesMutations in
tools/pixel_aot.py(reverted withgit checkout -- .):sdwa_sourcezero-extend path shifts byoffset ^ 8: killed (pixel_aot_check.pyrc=1, "SDWA movrel selection ... 0 occurrences, expected 1").sdwa_destUNUSED_PRESERVE keep mask built fromoffset ^ 8: killed (rc=1).AI-assisted; commands listed were executed locally.