Repository navigation
docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise rows - #4891
docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise rows#4891LouisRiverstone wants to merge 4 commits into
Conversation
… 64-bit scalar bitwise rows
Known approximations (14,392 chars) held a repeated block of ~17 sentences,
sentences with two to four stitched versions inside them, older claims next to
the newer measured ones ('nearest-mode v_fma_mix* still rounds twice ...
unmeasured', 'v_cos/exp/log_f16 are unmeasured'), and v_add_f64's
FastTwoSum sentence split at the unescaped |a| >= |b| with its second half
spliced into the v_mul_legacy sentence. It now keeps one copy of each rule,
the newest wording already in the row: v_add_f64's sentence whole again
(from b24f2ce, pipes escaped), the v_fma_mix sentence that matches the code
(Gen.fma_mix_odd in both modes), the exhaustive 65,536-input transcendental
sweep. 64-bit scalar bitwise ops: two repeated sentences dropped. No
behaviour change.
|
Tested on Windows 11 / Python 3.12.10 at head SHA
AI-assisted review (Gemini 4 Neon). |
|
Thanks @DenRakEiw, on the current head |
|
Tested a13c24e merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass, with one note
|
|
Verified against current main (3faac55, merges cleanly): the docs guards pass, and a sentence-level comparison shows every fact removed from the two rows still appears at least once elsewhere in design.md — re-checked here on the strongest probes (the single-rounding statement, the finding citation, steps-back-one-ulp, the lane-mask caveat: each present in the result), and nothing ends at zero occurrences. The edit removes only duplicate copies of the same measurement, and fixes the self-contradictory fma_mix wording the old row had accumulated. For a reviewer skimming the raw diff: the sentence-level audit is why this is a content-preserving dedup, not a content loss. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
…py of each sentence @kapitche on ItsNotRexed#4891: the row was still stitched after dropping its two exact repeats. An unescaped '(D.lo | D.hi)' had split the RX 7600 sentence, and merges then repeated its pieces: three '**Not GPU-verified.**', five 'hardware- verified on an AMD RX 7600', three 'The measured plain-data words' (a copy of the RX 7900 XTX words spliced into the RX 7600 sentence). The row now keeps the dispatch, plain-data, until, nand/nor/xnor and source sentences, the CPU-checked + RX 7900 XTX hardware sentence ('on the same part' named: the gfx1100 raw wave32 kernels of 3105a93), and the RX 7600 sentence whole with its pipe escaped. 5,361 -> 2,501 characters. No behaviour change.
|
Thanks @kapitche, you're right: that row was still stitched. The exact-repeat pass only removed two sentences. An unescaped Rebuilt in
Now "Not GPU-verified" occurs 0 times, "RX 7600" once, and the measured words once. The column count matches the neighbours, and the docs tests pass. |
|
Fact-checked Known approximations (
64-bit scalar bitwise ops (
Checks: both rows have 3 unescaped pipes (4 cells), like their neighbours. Note (not blocking): the row no longer points to the f16 transcendentals row for the RX 6700 XT sweep. That measurement is still at Overlap with #3074: both PRs change the same row and they conflict. This PR already has #3074's Verdict: pass. AI-assisted. |
…6 transcendentals row @sovljanskii on ItsNotRexed#4891: the dedupe dropped the RX 6700 XT sweep and its 'see the f16 transcendentals row' pointer from this row. The measurement is still in that row; the pointer is back.
|
Thanks @sovljanskii, and for checking |
|
Reviewed 72a2d06 (docs read + The only change since the checked 8087178 is one clause in the Known approximations row (
AI-assisted (Claude Code). |
# Conflicts: # docs/design.md
|
Merged current |
|
Follow-up to my earlier comment (#4891 (comment), tested a13c24e): resolved. Tested ca6109a merged with main 561b65a on Linux (WSL2), Python 3.12.16: pass.
|
Two more stitched
docs/design.mdrows, not covered by #3637 or #4879.Known approximations (14,392 characters on
main):v_add_f64omod, omod vs denormals,test_mode_round.py, thev_fma_mix,fma_mix_oddand transcendental sentences, and the MODE caveats.v_fma_mix{lo,hi}_f16sentence repeats its opening four times with different evidence, and ends with "the nearest-even path is unchanged (f32Fma, then narrow)".v_fma_mix*still rounds twice … unmeasured" (×2), and "In nearest mode the translator still roundsv_fma_mix{lo,hi}_f16twice". The code callsGen.fma_mix_oddfor both modes (tools/rdna2spirv.py, thev_fma_mixlo/hi_f16branch), and the row's own measured sentence says the hardware rounds once.v_cos_f16,v_exp_f16andv_log_f16are unmeasured", next to the exhaustive 65,536-input sweep of all seven (SHADER-132).v_add_f64'sFastTwoSumsentence was split at the unescaped|a| >= |b|. Its second half was spliced into the middle of thev_mul_legacy_f32sentence (… RX 9070 XT). \| b \|,FastTwoSum…`).The row now keeps one copy of each rule, always the newest wording already in it:
v_add_f64's sentence whole again, from b24f2ce where it was added, with the pipes escapedv_fma_mixsentence with all its evidence (gfx1036 7/7, the RX 6800 word, SHADER-296 / fix(translator): round v_fma_mixlo/hi_f16 once to f16 (finding 7079901079) #1774), which now says the translator usesfma_mix_oddin both modes, as the code doesfma_mix_oddtiny-product sentenceIt goes from 14,392 to 5,028 characters. No measurement or attribution in the row is dropped, except the superseded "unmeasured" claims.
64-bit scalar bitwise ops: the two repeated sentences ("The lane-mask path … cannot be measured this way", "The lane-mask dispatch … was not re-measured") are dropped. The row's trailing
\|is unchanged frommain.Checked:
tools/rdna2spirv.py(fma_mix_odd,f64_add_mode'sFastTwoSum)|inside a celltests/test_docs_*.pychecks passDocs only. No game files. Claimed on #4816 before starting.
AI-assisted (Claude Code): I reviewed and ran the checks.