Repository navigation
tests: pin the SDWA v_movrel* selections without a GPU - #1979
Merged
R0Y00 merged 1 commit intoNov 24, 2026
Merged
Conversation
Follow-up to ChazY11's review of R0Y00#1934: the device-free pixel_aot_check.py run only checked that SDWA_MOVREL_BODY translates, so dropping the source selection still passed it (the draw caught it). SDWA_MOVREL_PINS now 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). Each of five one-line mutations of tools/pixel_aot.py, applied alone, now makes `python -B tests/pixel_aot_check.py` exit 1: the source selection dropped (the reported survivor), sext ignored, the single-destination selection dropped, the dynamic-destination selection dropped, and dynamic UNUSED_PRESERVE treated as UNUSED_PAD. tools/pixel_aot.py is unchanged. Refs R0Y00#1917, R0Y00#1934 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tedin7
reviewed
Nov 24, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head 2e5fdca
Result: 0 P1, 0 P2. Clean-room check: the change touches only tests/pixel_aot_check.py and one docs paragraph; no CMake change, no third-party material.
What the change does: check_sdwa_movrel_pins matches the generated HLSL of SDWA_MOVREL_BODY against 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 conflicts- Win2025 (WARP node), Debug and Release /O2:
python3 -B tests/pixel_aot_check.pyrc=0;ctest -R "^pixel_aot_(sdwa_movrel|smovrel)_"4/4 passed in both phases - GitHub CI: Linux Python checks, gfx1013 fixtures and Windows build all pass
Mutations in tools/pixel_aot.py (reverted with git 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 2e5fdca.
tests/form_coverage_check.pyandtests/docs_links_check.pypass.🤖 Generated with Claude Code