mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #762] OLD-3011: tests/semantic: run v_div_fixup_f32 through the translator, not a mock oracle (TEST-545) #800
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#800
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/762
Author: @whoalin1
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test-545-real-oracle📝 Commits (1)
4ca48d5tests/semantic: run v_div_fixup_f32 through the translator, not a mock oracle (TEST-545)📊 Changes
3 files changed (+402 additions, -903 deletions)
View changed files
📝
tests/semantic/README.md(+5 -0)➕
tests/semantic/fixtures/div_fixup_f32.asm(+9 -0)📝
tests/semantic/test_valu_div_fixup.py(+388 -903)📄 Description
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).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.