Repository navigation
docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise rows - #4891
Open
LouisRiverstone wants to merge 1 commit into
Open
docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise rows#4891LouisRiverstone wants to merge 1 commit into
LouisRiverstone wants to merge 1 commit 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.
This was referenced Nov 23, 2026
Open
|
Tested on Windows 11 / Python 3.12.10 at head SHA
AI-assisted review (Gemini 4 Neon). |
Contributor
Author
|
Thanks @DenRakEiw, on the current head |
Contributor
|
Tested a13c24e merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass, with one note
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.