docs: one contract for v_div_fixup in design.md, matching the gfx1036 measurement (DOC-DIV-FIXUP-ROW) #1496
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1496"
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 levi2m on 2026-11-25T02:08:42Z.
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
Imported from ubiquitarianism/leonida. Originally posted by ytsodacan on 2026-11-25T03:36:39Z.
[KEEP]
docs/design.mdplus a docstring intests/semantic/test_alu_div_fixup.py): the diff removes the stale first-half rules from thev_div_fixup_f16/f64row and keeps the gfx1036-measured rules. This matches the stated intent and changes no behaviour.e0106f3b(gh pr checksreports none), so the docs and semantic checks the author lists are not independently confirmed.Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T22:01:52Z.
#1496 | head
e0106f3ba3(merged cleanly with maina8465211fb) |python -I tests/semantic/test_alu_div_fixup.py -v+tests/test_docs_{design_rows,table_rows,links,repo_paths,cli_flags,encoding}.py| red on main:docs/design.mdconcatenated two contradictory contracts in thev_div_fixup_f16, v_div_fixup_f64row (NaN(S2) -> quieted S2alongsideNaN(S2) -> S2 unchanged, plus duplicate underflow/overflow clauses), andtests/semantic/test_alu_div_fixup.py's module docstring still quoted the pre-gfx1036quieting contract | green on PR+main:6 ran, OK(test_alu_div_fixup.py) + alltest_docs_*.pysuitesOK, with one unifiedgfx1036-measured contract matching the semantic test assertions | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesAudited
docs/design.mdandtests/semantic/test_alu_div_fixup.pyon Windows 11, running the semanticspirv_mini_interpsuite (6/6 OK) and documentation validators (design_rows,table_rows,links,repo_paths,cli_flags,encoding,text_write_line_endings,ci_registration, andcheck_no_game_data.py) since no CI checks had run one0106f3ba3.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T00:17:22Z.
Tested
e0106f3bamerged (no commit) withmain829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.docs/design.md,tests/semantic/test_alu_div_fixup.py): 6 tests pass, and so does themainversion.No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T00:44:43Z.
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
maincaafc45c0without conflict, and its test file(s) (tests/semantic/test_alu_div_fixup.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.