docs: one contract for v_div_fixup in design.md, matching the gfx1036 measurement (DOC-DIV-FIXUP-ROW) #1496

Open
github-bot wants to merge 1 commit from github-bot/gh-1496 into main AGit
Owner

@⁠levi2m on GitHub · 2026-11-25 02:08 UTC · original
levi2m:docs/div-fixup-row-consistency → main · +3 −3 · 2 files · 1 commits · open

Claimed in the coordination issue as: DOC-DIV-FIXUP-ROW (claim)
Depends on: none (follow-up to #1005, which fixed tools/f64_diff.py and left this row)
Fixes: none

What and why

The v_div_fixup_f16/v_div_fixup_f64 row in docs/design.md stated 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 and tests/semantic/test_alu_div_fixup.py implement: no overflow cutoff, f64 underflow at <= -1076, sNaN unchanged under IEEE=0, NaN(S0) -> ±inf. This removes the stale half and keeps one rule set, with the NaN source order (S2 wins) stated once. The docstring of test_alu_div_fixup.py carried 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.py on both files: clean.

GPUs tested: n/a (docs and a test docstring only)
AI-assisted: yes

**@⁠levi2m** on GitHub · 2026-11-25 02:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1496) `levi2m:docs/div-fixup-row-consistency` → `main` · +3 −3 · 2 files · 1 commits · open Claimed in the coordination issue as: DOC-DIV-FIXUP-ROW ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)) Depends on: none (follow-up to #1005, which fixed `tools/f64_diff.py` and left this row) Fixes: none ### What and why The `v_div_fixup_f16`/`v_div_fixup_f64` row in `docs/design.md` stated 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 and `tests/semantic/test_alu_div_fixup.py` implement: no overflow cutoff, f64 underflow at `<= -1076`, sNaN unchanged under `IEEE=0`, `NaN(S0)` -> `±inf`. This removes the stale half and keeps one rule set, with the NaN source order (`S2` wins) stated once. The docstring of `test_alu_div_fixup.py` carried 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.py` on both files: clean. GPUs tested: n/a (docs and a test docstring only) AI-assisted: yes
The v_div_fixup_f16/f64 row stated 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 and test_alu_div_fixup.py
implement. Keep one rule set and state the NaN source order once. The test
module docstring carried the same stale lines and is updated. No behaviour
changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:54:13 +00:00
Author
Owner

@⁠ytsodacan on GitHub · 2026-11-25 03:36 UTC · original · edited 2026-11-25 03:43 UTC

[KEEP]

  • Docs-only (docs/design.md plus a docstring in tests/semantic/test_alu_div_fixup.py): the diff removes the stale first-half rules from the v_div_fixup_f16/f64 row and keeps the gfx1036-measured rules. This matches the stated intent and changes no behaviour.
  • No CI checks have run on head e0106f3b (gh pr checks reports none), so the docs and semantic checks the author lists are not independently confirmed.
  • I found no overlapping open PR for this row. This looks mergeable once CI runs green.
**@⁠ytsodacan** on GitHub · 2026-11-25 03:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1496#issuecomment-7152075536) · edited 2026-11-25 03:43 UTC **[KEEP]** - Docs-only (`docs/design.md` plus a docstring in `tests/semantic/test_alu_div_fixup.py`): the diff removes the stale first-half rules from the `v_div_fixup_f16/f64` row and keeps the gfx1036-measured rules. This matches the stated intent and changes no behaviour. - No CI checks have run on head `e0106f3b` (`gh pr checks` reports none), so the docs and semantic checks the author lists are not independently confirmed. - I found no overlapping open PR for this row. This looks mergeable once CI runs green.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1496/head:github-bot/gh-1496'
git switch 'github-bot/gh-1496'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1496'
git switch 'github-bot/gh-1496'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1496'
git switch 'github-bot/gh-1496'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1496'
git switch 'main'
git merge --squash 'github-bot/gh-1496'
git switch 'main'
git merge --ff-only 'github-bot/gh-1496'
git switch 'main'
git merge 'github-bot/gh-1496'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.