docs/design: de-duplicate the s_bfe contract-table row #2490
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2490"
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 thiefyzheng on 2026-11-27T18:27:29Z.
Claimed in the coordination issue as: DOCS-DESIGN-DUPLICATED-ROWS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7225493256), from kawaii-shakal's finding (#1608#issuecomment-7225444802)
What and why
The
s_bfe_u32/s_bfe_i32past bit 31 contract-table row indocs/design.mdcame out of an old merge with its Source sentences repeated, ending in**RDNA2 is not measured**directly after the RDNA2 measurements (gfx1035, gfx1036) in the same row. The repeats and that stale closing sentence are dropped; the LLVMconstantFoldBFEcomparison stays.Only this row changes. As requested in review, the overlapping
64-bit scalar bitwise opsrow is byte-identical tomainand its independent cleanup is left to #1450. No measurement is added or changed, and every measured claim in thes_bferow is kept once.Tested
Docs only. All 61 tests in
tests/test_docs_*.pyandtests/test_design_contract_rows.pypass on the rebased head.scripts/check_no_game_data.py docs/design.mdandgit diff --checkare clean. The hardware claims were not re-measured.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by kawaii-shakal on 2026-11-27T19:14:13Z.
The
s_bfe_u32/s_bfe_i32part looks right to me: it drops the repeated Source sentences and the trailing "RDNA2 is not measured", which contradicted the RDNA2 measurements earlier in the same row.The "64-bit scalar bitwise ops" part overlaps #1450 (open since Nov 26, same row) and conflicts with it. It also keeps "Hardware-verified on the same part through
tools/hw_oracle" with no part named before it in the row (main has the same dangling reference after the bad merge), so the hw_oracle words are not tied to a GPU. #1450 names the part. Maybe drop the 64-bit row from this PR and leave it to #1450, or take its wording?AI-assisted (Claude Code); I compared the two diffs against main
43a9d562.Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by thiefyzheng on 2026-11-28T21:02:22Z.
@kawaii-shakal — took the first option and dropped the 64-bit scalar row from this PR, leaving that independent cleanup to #1450.
Rebased onto
main54d27d9883; new head is2c96ab605ce74f92d917e714d070f94ddc3887d2. The only changed row is nows_bfe_u32/s_bfe_i32; the64-bit scalar bitwise opsrow is byte-identical tomain. PR title and body are updated to match.All 61 tests in
tests/test_docs_*.pyandtests/test_design_contract_rows.pypass;check_no_game_data.pyandgit diff --checkare clean. No hardware claims re-measured. AI-assisted.Imported from ubiquitarianism/leonida. Originally posted by thiefyzheng on 2026-11-28T21:20:27Z.
CI has settled on
2c96ab605c:no-game-datapasses and the code-only jobs are correctly skipped for this docs-only change. The sole red job ischange-scope's pre-existing repository-rename mismatch:test_make_game_preflight.pystill expects the oldubiquitarianism/leonidaclone command while README namesProjectLeonida/mandy. The same failure is present in main's core suite; this PR does not touch either file. All 61 docs/contract tests pass locally on this head. AI-assisted.Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-11-28T22:48:07Z.
Review: COMMENTED
Independent review (Linux, Python 3.12.3, AI-assisted) of head
2c96ab605c, merged with current mainadfb3821a(git merge-tree --write-treerc=0):docs/design.md: only thes_bfe_u32/s_bfe_i32past-bit-31 row changes. I read the old and new rows side by side — every measured claim survives exactly once: gfx1150 (4,000 random control words), gfx1201/RDNA4 (10,000 programs, seed 500), RDNA2 gfx1035 (500/500 plusint_hw_probewave32/64, SHADER-137), RDNA2 gfx1036 (6,000 of 6,000 across seeds 1–3 plus seed 4, 2,000 of 2,000), thebfe_widthtranslator note, and the LLVMconstantFoldBFEcomparison.**RDNA2 is not measured**, which contradicted the RDNA2 measurements in the same row.tests/test_design_contract_rows.py5 OK, everytests/test_docs_*.pyfile OK,git diff --checkclean,scripts/check_no_game_data.py docs/design.mdclean. No hardware claims re-measured (docs-only, none added).No blockers from this review.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:08:15Z.
#2490 | head
2c96ab605c(merged cleanly onto origin/main829530dbd0) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesIndependent Verification (Windows 11)
+1/-1indocs/design.mdline 497,s_bfe_u32/s_bfe_i32past bit 31 row).python -I scripts/check_no_game_data.py docs/design.mdpassed (rc=0).origin/main829530dbd0vs#2490 + origin/main):origin/main): Thes_bfe_u32/s_bfe_i32contract-table cell repeats theSource: measured on gfx1150 ...andtools/salu_diff.py --oracle hw,translator --bfe-any --programs 500 --seed 1clauses and ends with stale**RDNA2 is not measured**; the ISA pseudocode does not say.contradicting the native RDNA2gfx1035andgfx1036oracle measurements earlier in the same cell.#2490 + origin/main): Deduplicates the repeated clauses cleanly and removes the stale**RDNA2 is not measured**tail while preserving everygfx1150,gfx1201,gfx1035,gfx1036,bfe_width, and LLVMconstantFoldBFEdetail.tests/test_docs_links.pyandtests/test_docs_cli_flags.pychecks ondocs/design.md->0broken links or unknown CLI flags.python -I tests/test_docs_design_rows.py(5/5),tests/test_docs_table_rows.py(2/2),tests/test_docs_repo_paths.py(5/5),tests/test_docs_encoding.py(1/1),tests/test_docs_list_items.py(3/3), andtests/test_docs_repeated_lines.py(3/3) -> all passed (OK).python -I tools/progress_dashboard.py --out <tempdir>->rc=0(297 units, 4 metrics -> progress.html), confirming the dashboard collector parses the updateddocs/design.mdcontract table cleanly.Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T04:29:27Z.
Review: COMMENTED
Reviewed
2c96ab605and found no issues. The 15,445-byte diff contains a single line replacement atdocs/design.md:497. Six long context lines account for 11,989 bytes of document text in the diff, which also shows the full old and new versions of the edited row. The reconstructed document matches the patch's postimage blob ID. The full old hunk matches the corresponding lines in the supplied main snapshot, and the separate 64-bit scalar bitwise row is byte-identical across the PR base, patch postimage, and supplied main.The row retains the gfx1150, gfx1201, gfx1035, and gfx1036 measurements, the
bfe_widthnote, and the LLVMconstantFoldBFEcomparison. The edit removes the repeated source text and the stale closing sentence that contradicted the RDNA2 measurements. Intools/rdna2spirv.py, both constant and runtime controls use a five-bit offset and seven-bit width capped at32 - offset. The signed example extracts four bits and sign-extends0xdto0xfffffffd, with SCC set because the result is nonzero.I inspected
tests/test_docs_design_rows.pyandtests/test_docs_table_rows.py. The replacement keeps the same topic and two-cell shape, stays in the same contiguous table, and introduces no duplicate row. Static audit only. I ran no tests, builds, or GPU probes.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:52:54Z.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS, Python 3.12.16, main
0e8737f2a(merges cleanly; does not force a rebase of #2566 atcfd12b24f), PR head2c96ab605: docs only, doc tests greentests/test_docs_*.py+test_design_contract_rows,test_progress_dashboard,test_make_game_preflight(16 files): all OK on main, identical on the merge. Docs-only change, so no red is possible.docs/design.mdrow (s_bfe_u32/s_bfe_i32past bit 31) de-duplicated; content unchanged. No game data.Verdict: READY (docs only)
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:12:54Z.
Merging. Head
2c96ab605has red/green verdicts from reviewers other than the author (above), merges cleanly withmained089a96a, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (translator-testsmesh,semantic-testsf16) are pre-existing. Merged by MoonEyes.AI-assisted (Claude Code).