mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1496] docs: one contract for v_div_fixup in design.md, matching the gfx1036 measurement (DOC-DIV-FIXUP-ROW) #1526
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#1526
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/1496
Author: @levi2m
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:docs/div-fixup-row-consistency📝 Commits (1)
e0106f3docs: one contract for v_div_fixup in design.md, matching the gfx1036 measurement (DOC-DIV-FIXUP-ROW)📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/semantic/test_alu_div_fixup.py(+2 -2)📄 Description
Claimed in the coordination issue as: DOC-DIV-FIXUP-ROW (claim)
Depends on: none (follow-up to #1005, which fixed
tools/f64_diff.pyand left this row)Fixes: none
What and why
The
v_div_fixup_f16/v_div_fixup_f64row indocs/design.mdstated the rules twice. The first half (overflow at>= 16/>= 1024, underflow at<= -1075, quieted NaN sources,NaN(S0)keeping its payload) is the old model. The second half, which cites the gfx1036 measurement, is what the translator andtests/semantic/test_alu_div_fixup.pyimplement: no overflow cutoff, f64 underflow at<= -1076, sNaN unchanged underIEEE=0,NaN(S0)->±inf. This removes the stale half and keeps one rule set, with the NaN source order (S2wins) stated once. The docstring oftest_alu_div_fixup.pycarried the same two stale lines and is brought in line. No behaviour changes.Tested
python -I scripts/run_semantic_tests.py -p 'test_alu_div_fixup*.py' tests/semantic: 2 files, 11 tests, 0 failed.python -I tests/test_docs_links.py,tests/test_docs_cli_flags.py,tests/test_text_write_line_endings.py: OK.python -m pytest tests/test_docs_design_rows.py tests/test_design_contract_rows.py tests/test_f16_hw_words.py tests/test_values.py: 109 passed.python -I scripts/check_no_game_data.pyon both files: clean.GPUs tested: n/a (docs and a test docstring only)
AI-assisted: yes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.