test: distinguish both compute MAD24 source truncations #862

Manually merged
github merged 1 commit from gh-pr/862/head into gh-pr/862/base 2026-11-26 22:24:22 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 14:32 UTC · original
R0Y00:codex/check-compute-mad24-truncation → main · +55 −1 · 2 files · 1 commits · merged 2026-11-23 14:47 UTC

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.

**@⁠R0Y00** on GitHub · 2026-11-23 14:32 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/862) `R0Y00:codex/check-compute-mad24-truncation` → `main` · +55 −1 · 2 files · 1 commits · merged 2026-11-23 14:47 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:24:20 +00:00
github manually merged commit ee5535a4e3 into gh-pr/862/base 2026-11-26 22:24:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.