docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise ops rows (OLD-9925) #1450

Open
github-bot wants to merge 3 commits from github-bot/gh-1450 into main AGit
Owner

@⁠LouisRiverstone on GitHub · 2026-11-25 00:28 UTC · original
LouisRiverstone:carry-old-9925 → main · +2 −2 · 1 files · 3 commits · open

Claimed in the coordination issue as: OLD-9925 (#14)

Replaces the carried-over draft #193. I'm the original author of old upstream PR 9925.

What and why

Both rows had been stitched together from several copies of the same sentences. "Known approximations" was 14,392 characters with 14 sentences repeated word for word. "64-bit scalar bitwise ops" was 6,327 characters, with the measured words for the plain-data path appearing three times. Each row is rebuilt from one copy of each sentence, keeping the most complete copy. "Known approximations" drops to 5,172 characters, and "64-bit scalar bitwise ops" to 2,501.

The only text removed for good is stale text that the same row contradicts:

  • "In nearest mode the translator still rounds v_fma_mix{lo,hi}_f16 twice ... until #1774 lands", next to the sentence saying it rounds once in both modes through Gen.fma_mix_odd (SHADER-296)
  • "v_cos_f16, v_exp_f16 and v_log_f16 are unmeasured", next to the sentence saying all seven transcendentals were measured (RX 6700 XT, and the 65,536-input sweep on gfx1036)
  • "the nearest-even path is unchanged (f32 Fma, then narrow)"
  • a "Not GPU-verified." left in front of the RX 7600 hardware result

The pointer from "Known approximations" to the f16 transcendentals row is kept.

Rebuilt on current main. The old branch no longer merged, but the rows it changes are byte for byte the same on main as on its old base. Only neighbouring lines had changed. So each of those rows is replaced with the old branch's version, and no other line changes. No behaviour change.

Tested

  • I checked every measured value, file name and ID in the old rows against the new ones. Each is still there: the plain-data words (0x0F0F0000_00000000 and the others), 0x7fdd9bb47daa1333 and 0xffefffffffffffff, ps_f64_round.asm, ps_legacy_mul.asm, tests/test_mode_round.py, tools/mode_round_probe.py, tools/fma_mix_probe.py, SHADER-132/135/296, the omod-versus-denormal note, and the MODE write rules.
  • The tests/test_docs_*.py files (12, including test_docs_design_rows.py, test_docs_repeated_lines.py, test_docs_table_rows.py and test_docs_table_ids.py): all OK. git diff --check is clean.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)
**@⁠LouisRiverstone** on GitHub · 2026-11-25 00:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1450) `LouisRiverstone:carry-old-9925` → `main` · +2 −2 · 1 files · 3 commits · open Claimed in the coordination issue as: OLD-9925 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Replaces the carried-over draft #193. I'm the original author of old upstream PR 9925. ### What and why Both rows had been stitched together from several copies of the same sentences. "Known approximations" was 14,392 characters with 14 sentences repeated word for word. "64-bit scalar bitwise ops" was 6,327 characters, with the measured words for the plain-data path appearing three times. Each row is rebuilt from one copy of each sentence, keeping the most complete copy. "Known approximations" drops to 5,172 characters, and "64-bit scalar bitwise ops" to 2,501. The only text removed for good is stale text that the same row contradicts: - "In nearest mode the translator still rounds `v_fma_mix{lo,hi}_f16` twice ... until #1774 lands", next to the sentence saying it rounds once in both modes through `Gen.fma_mix_odd` (SHADER-296) - "`v_cos_f16`, `v_exp_f16` and `v_log_f16` are unmeasured", next to the sentence saying all seven transcendentals were measured (RX 6700 XT, and the 65,536-input sweep on gfx1036) - "the nearest-even path is unchanged (f32 `Fma`, then narrow)" - a "**Not GPU-verified.**" left in front of the RX 7600 hardware result The pointer from "Known approximations" to the f16 transcendentals row is kept. **Rebuilt on current `main`.** The old branch no longer merged, but the rows it changes are byte for byte the same on `main` as on its old base. Only neighbouring lines had changed. So each of those rows is replaced with the old branch's version, and no other line changes. No behaviour change. ### Tested - I checked every measured value, file name and ID in the old rows against the new ones. Each is still there: the plain-data words (`0x0F0F0000_00000000` and the others), `0x7fdd9bb47daa1333` and `0xffefffffffffffff`, `ps_f64_round.asm`, `ps_legacy_mul.asm`, `tests/test_mode_round.py`, `tools/mode_round_probe.py`, `tools/fma_mix_probe.py`, SHADER-132/135/296, the omod-versus-denormal note, and the MODE write rules. - The `tests/test_docs_*.py` files (12, including `test_docs_design_rows.py`, `test_docs_repeated_lines.py`, `test_docs_table_rows.py` and `test_docs_table_ids.py`): all OK. `git diff --check` is clean. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only)
- docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise rows
- docs/design.md: rebuild the 64-bit scalar bitwise ops row from one copy of each sentence
- docs/design.md: keep the known-approximations row's pointer to the f16 transcendentals row

Carried over from old-pr/9925 (old upstream PR 9925). The rows it changes are unchanged on main, so each is replaced with the old branch's version; the conflict was only in neighbouring lines.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:51:51 +00:00
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/1450/head:github-bot/gh-1450'
git switch 'github-bot/gh-1450'

Merge

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