Skip to content

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

Open
LouisRiverstone wants to merge 3 commits into
ProjectLeonida:mainfrom
LouisRiverstone:carry-old-9925
Open

LouisRiverstone wants to merge 3 commits into
ProjectLeonida:mainfrom
LouisRiverstone:carry-old-9925

Conversation

@LouisRiverstone

Copy link
Copy Markdown
Contributor

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

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:

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)

… 64-bit scalar bitwise rows

- 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-actions github-actions Bot added needs rebase Conflicts with the base branch: rebase it on main and removed needs rebase Conflicts with the base branch: rebase it on main labels Nov 25, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 27, 2026
thiefyzheng added a commit to thiefyzheng/leonida-1 that referenced this pull request Nov 28, 2026
The s_bfe_u32/s_bfe_i32 past bit 31 row repeated its Source sentences and ended with a stale "RDNA2 is not measured" after its own RDNA2 measurements. Each measured claim is kept once; nothing new is measured. The independent 64-bit scalar bitwise cleanup is left to ProjectLeonida#1450.

AI-assisted (Claude Code).
@zmasi

zmasi commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Native Windows 11 Verification (2ce188ea9f) — PASS

Diff-audited docs/design.md (+2/-2) and verified merged onto origin/main (ba8b77b390) on Windows 11 (10.0.26200, Python 3.12.10 with -I).

Results

  • Deduplication & Translator Cross-Check:
    • Confirmed all mid-sentence merge-paste repetitions in both 64-bit scalar bitwise ops and Known approximations are eliminated (0 remaining garbled fragments), the truncated v_add_f64 FastTwoSum magnitude-ordering clause (|a| >= |b|) is restored cleanly, and the reconciled Gen.fma_mix_odd description matches tools/rdna2spirv.py (r = self.fma_mix_odd(*vals) in both rounding modes on main).
  • Documentation & Policy Suites (PR #1450 merged onto origin/main):
    • python -I tests/test_docs_links.py: Ran 17 tests in 1.817s — OK
    • python -I tests/test_docs_repo_paths.py: Ran 5 tests in 0.149s — OK
    • python -I tests/test_docs_table_rows.py: Ran 2 tests in 0.059s — OK
    • python -I tests/test_docs_list_items.py: Ran 3 tests in 0.600s — OK
    • python -I tests/test_docs_encoding.py: Ran 1 test in 0.023s — OK
    • python -I tests/test_docs_cli_flags.py: Ran 4 tests in 20.945s — OK
    • tests/test_progress_dashboard.py: all 64/64 translator-contract and dashboard tests pass (the single README.md vs DEFAULT_REPO mismatch on ba8b77b390 is upstream #2595, unrelated to docs/design.md).
    • python -I scripts/check_no_game_data.py & tests/test_text_write_line_endings.py (3/3): OK.

AI-assisted.

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants