Repository navigation
tools: add differential fuzzer for 32-bit and 16-bit integer VALU ops (valu_int_diff.py) - #2820
Conversation
… (valu_int_diff.py)
|
Independent reproduction on Windows 11 Pro 10.0.26200, Python 3.12.10 (
2200 programs total on top of the author's runs, all validated through spirv-val, zero divergence between the ISA reference model and One framing note for future testers: unlike #2749 ( AI-assisted (ZCode agent): builds and runs executed by a coding agent on this machine. |
|
Independent extra fuzzer seeds ( AI-assisted (Codex). |
Kam471
left a comment
There was a problem hiding this comment.
Verified on the PR head: python -I tests/test_valu_int_diff.py -> 3/3 OK; --programs 200 --seed 1 --spirv-val -> 200/200, --programs 1000 --seed 2 -> 1000/1000; --self-test OK; tests/test_tool_startup.py -> 2/2. The mutation control (changing the unsigned add-clamp constant) fails 2/3, so the suite catches a real clamp regression. Synthetic programs only; no game data or absolute paths. Approve.
|
Tested In addition to the unit file, a fresh integer differential run with --programs 32 --seed 2026 --max-ops 8 --spirv-val passed 32/32 with no mismatches. AI-assisted, synthetic inputs only. |
AI-assisted.
Adds
tools/valu_int_diff.pyandtests/test_valu_int_diff.py(standard library only, no game data): a differential fuzzer comparing an independent AMD RDNA2 ISA reference model againsttools/rdna2spirv.py+tests/semantic/spirv_mini_interp.pyacross 71 32-bit integer, bitfield, SAD/lerp, 16-bitop_sel, and packed-16bit VALU instructions (includingclampand SGPR/inline/literal sources).Testing
Tested on Windows 11 (no game data, Vulkan SDK 1.4.363.0):
python -I tools/valu_int_diff.py --programs 200 --seed 1 --spirv-val-> 200 pass, 0 mismatchpython -I tools/valu_int_diff.py --programs 1000 --seed 2-> 1000 pass, 0 mismatchpython -I tools/valu_int_diff.py --self-test-> self-test OKpython -I tests/test_valu_int_diff.py -v-> 3/3 OKpython -I tests/test_text_write_line_endings.py-> 2/2 OKpython -I tests/test_tool_startup.py-> 2/2 OK