test: distinguish both compute MAD24 source truncations #856

Merged
R0Y00 merged 1 commit from upstream-pr/862 into main 2026-11-23 14:47:43 +00:00
R0Y00 commented 2026-11-23 14:32:20 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T14:32:20Z.


Refs #721.

Keep the original LLVM-generated read–compute–write case and add a synthetic MAD24 case with bit 24 set in the first factor and bit 25 in the second. Enable lane 0 and set the clamp to UINT_MAX. The full 320-word oracle checks the product modulo 2^32 and every inactive sentinel. Both single-source truncation mutations are compiled and run. The correct word 0 is 0x0df050e1; removing the left or right truncation gives 0xfef050e1 or 0xeff050e1, respectively. The other #721 ALU work remains open.

Local Windows 11 build 26200.9974, debug layer enabled:

python -B tests/compute_store_check.py draw-guard-read $dxc $offscreen warp
python -B tests/compute_store_check.py draw-guard-read $dxc $offscreen hardware

WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 matched the full readbacks and rejected both mutants. Both existing guard/read groups ran in 5.44 s on WARP and 21.63 s on RTX (including the new fixture). The LLVM 15 binary round trip and python -B tests/docs_links_check.py also passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6561594244 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/862). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T14:32:20Z. --- Refs #721. Keep the original LLVM-generated read–compute–write case and add a synthetic MAD24 case with bit 24 set in the first factor and bit 25 in the second. Enable lane 0 and set the clamp to UINT_MAX. The full 320-word oracle checks the product modulo 2^32 and every inactive sentinel. Both single-source truncation mutations are compiled and run. The correct word 0 is 0x0df050e1; removing the left or right truncation gives 0xfef050e1 or 0xeff050e1, respectively. The other #721 ALU work remains open. Local Windows 11 build 26200.9974, debug layer enabled: ```powershell python -B tests/compute_store_check.py draw-guard-read $dxc $offscreen warp python -B tests/compute_store_check.py draw-guard-read $dxc $offscreen hardware ``` WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 matched the full readbacks and rejected both mutants. Both existing guard/read groups ran in 5.44 s on WARP and 21.63 s on RTX (including the new fixture). The LLVM 15 binary round trip and python -B tests/docs_links_check.py also passed.
upstream-sync closed this pull request 2026-11-24 06:45:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!856
No description provided.