[PR #1005] [MERGED] f64_diff: v_div_fixup_f64 reference follows the gfx1036 measurement (F64-DIFF-DIV-FIXUP-REF) #1041

Closed
opened 2026-11-26 20:19:53 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1005
Author: @thesubtleties
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD

Base: main ← Head: f64-diff-fixup-ref


📝 Commits (1)

  • 3edc26b f64_diff: v_div_fixup_f64 reference follows the gfx1036 measurement (F64-DIFF-DIV-FIXUP-REF)

📊 Changes

2 files changed (+25 additions, -12 deletions)

View changed files

📝 tests/test_f64_diff.py (+18 -7)
📝 tools/f64_diff.py (+7 -5)

📄 Description

Claimed in the coordination issue as: F64-DIFF-DIV-FIXUP-REF

What and why

The v_div_fixup_f64 reference in tools/f64_diff.py still had the old rule: infinity when exp(S2) - exp(S1) >= 1024, underflow from -1075, and quieted NaN sources. The gfx1036 measurement recorded in docs/design.md (v_div_fixup row, by timelery) says: no overflow cutoff, underflow at <= -1076, NaN sources pass unquieted. The translator already follows it, so the fuzzer reported false mismatches. Only the fuzzer and its tests change. The same design row still states the old rule earlier in its text; I left that for a docs change.

Tested

  • tools/f64_diff.py --programs 300: seeds 770707 and 3 go from 1 mismatch to 0; seeds 1, 2, 4, 5 stay at 0. --self-test passes.
  • tests/test_f64_diff.py: 32 passed, with five table rows moved to the measured values and a new reference-against-translator check at the cutoffs.
  • I did not measure the hardware myself.

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: n/a, no translator change.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1005 **Author:** [@thesubtleties](https://github.com/thesubtleties) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `f64-diff-fixup-ref` --- ### 📝 Commits (1) - [`3edc26b`](https://github.com/ubiquitarianism/leonida/commit/3edc26bad8e969f031e2182a9353342106580f94) f64_diff: v_div_fixup_f64 reference follows the gfx1036 measurement (F64-DIFF-DIV-FIXUP-REF) ### 📊 Changes **2 files changed** (+25 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_f64_diff.py` (+18 -7) 📝 `tools/f64_diff.py` (+7 -5) </details> ### 📄 Description Claimed in the coordination issue as: F64-DIFF-DIV-FIXUP-REF ### What and why The `v_div_fixup_f64` reference in `tools/f64_diff.py` still had the old rule: infinity when `exp(S2) - exp(S1) >= 1024`, underflow from `-1075`, and quieted NaN sources. The gfx1036 measurement recorded in `docs/design.md` (v_div_fixup row, by timelery) says: no overflow cutoff, underflow at `<= -1076`, NaN sources pass unquieted. The translator already follows it, so the fuzzer reported false mismatches. Only the fuzzer and its tests change. The same design row still states the old rule earlier in its text; I left that for a docs change. ### Tested - `tools/f64_diff.py --programs 300`: seeds 770707 and 3 go from 1 mismatch to 0; seeds 1, 2, 4, 5 stay at 0. `--self-test` passes. - `tests/test_f64_diff.py`: 32 passed, with five table rows moved to the measured values and a new reference-against-translator check at the cutoffs. - I did not measure the hardware myself. 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. - [x] A new translator rule is in the contract table of `docs/design.md`: n/a, no translator change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:53 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1041
No description provided.