OLD-3011: tests/semantic: run v_div_fixup_f32 through the translator, not a mock oracle (TEST-545) #762
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/762"
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 ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T13:34:20Z.
Restores my open PR from the original repository (OLD-3011 / TEST-545), rebased onto current
main(2d73c242f).Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133003627
Summary
tests/semantic/test_valu_div_fixup.pypreviously compared a hand-written Python model against itself without importingtools/rdna2spirv.py, so it passed regardless of what the translator emitted.tools/rdna2spirv.pyandspirv_mini_interp: pure-integer lowering op order and measured classification constants,NaN(S2)overNaN(S1)read off the dataflow, measured rule words,clamp/omodordering, EXEC-masked preservation, and null-destination behavior.tests/semantic/fixtures/div_fixup_f32.asmand updatestests/semantic/README.md.Verification (rebased on
2d73c242f)py -3.14 -m unittest discover -s tests/semantic -p test_valu_div_fixup.py -v— 8/8 passedpy -3.14 -m unittest discover -s tests/semantic -p test_alu_div_fixup_f32.py -v— 4/4 passedpy -3.14 -I tests/test_text_write_line_endings.py— 3/3 passedAI-assisted (Gemini 4 Neon).
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:35:25Z.
Review: APPROVED
Audited and verified. Clean-room compliant.
Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T20:02:56Z.
Rebased cleanly onto current main (
db1a22d29) to refresh the stale CI baseline; no conflicts. The branch remains the single TEST-545 semantic-oracle replacement commit. AI-assisted with Devin.Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-28T10:04:44Z.
Rebased cleanly onto
main(33db04a70) to resolve the bullet conflict intests/semantic/README.md(keeping bothtest_fma_fused_fixture.pyfrommainandtest_valu_div_fixup.py). Head is now2d62a50a0d2c41ca58086d88c744c79e41db18aa.Verification (rebased on
33db04a70)python -m unittest discover -s tests/semantic -p test_valu_div_fixup.py -v— 8/8 passedpython -m unittest discover -s tests/semantic -p "test_*div*.py" -v— 67/67 passed (includestest_alu_div_fixup_f32.py, 5/5)python -m unittest discover -s tests/semantic -p test_fixtures.py -v— 1/1 passedpython -I tests/test_text_write_line_endings.py&python -m unittest discover -s tests -p test_text_write_line_endings.py -v— 3/3 passedpython -I scripts/check_no_game_data.pyon all 3 touched files — clean (exit 0)CPU-only semantic/translator test changes (no GPU run needed). AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:45:46Z.
#762 | head
2d62a50a0d2c41ca58086d88c744c79e41db18aa|python3 -m unittest discover -s tests/semantic -p test_valu_div_fixup.py -v| red: 8 passed | green: 8 passed | Passed on both treesThis adds regression coverage for v_div_fixup_f32. The translated shader already matched the expected values on this main.
Captured 6 distinct complete SPIR-V module(s) emitted while rerunning test_valu_div_fixup.py on the merged tree. All assembled and passed spirv-val for Vulkan 1.2 with --allow-offset-texture-operand.
Base
3bd936ecd98995bca3e1da83d5e28d2343001aefwas merged into the recorded PR head for the second run. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Counts include unittest subtest events where applicable. AI-assisted with OpenAI Codex. Batch claim.Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T11:54:20Z.
Merged, thank you @whoalin1! This translator PR (OLD-3011: tests/semantic: run v_div_fixup_f32 through the translator, not a mock oracle (TEST-545)) passed its own tests with main merged in during sodove's verification of this batch, so it went in with the batch.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.