[PR #270] [CLOSED] test: follow full-EXEC f64 output word stores #321

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/270
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/10000


📝 Commits (1)

  • 0fe1669 test: follow full-EXEC f64 output word stores

📊 Changes

2 files changed (+4 additions, -6 deletions)

View changed files

📝 tests/test_f64_conversion.py (+2 -3)
📝 tests/test_f64_output_modifiers.py (+2 -3)

📄 Description

Carried over from old PR 10000 by WebIdentity1 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10000, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
WebIdentity1: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116967070

What and why

The hand-written f64 conversion and add fixtures keep EXEC fully active. The translator emits a direct OpStore of each computed word in that case, but these two structural tests still require an OpLoad and OpSelect of the old destination. On main d083a2cc3, that stale shape fails all six conversion modifier cases and all seven add modifier cases. The tests now follow the computed value through conversion/add, scaling, clamp, and bit extraction to the direct store. The NoContraction checks remain. Production translation is unchanged; separate semantic tests cover masked execution.

Tested

macOS, Python 3.12, synthetic hand-written listings only; no GPU or game files:

  • Baseline: tests/test_f64_conversion.py fails six modifier subtests; tests/test_f64_output_modifiers.py fails seven.
  • Head: both files pass (3 tests, all modifier cases).
  • Related tests pass: test_f64_transcendentals.py (2), test_f64_omod_probe.py (8), test_f64_float_controls.py (3), semantic/test_valu_add_f64.py (8), semantic/test_valu_cvt_f32_f64.py (58), semantic/test_active_cache.py (9), and semantic/test_carry_exec_mask.py (9).
  • python3.12 -I scripts/check_no_game_data.py on both changed files, compileall, and git diff --check pass.

AI-assisted: yes.


🔄 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/270 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/10000` --- ### 📝 Commits (1) - [`0fe1669`](https://github.com/ubiquitarianism/leonida/commit/0fe16691d12136d179b9858bfbe49a485b04ade3) test: follow full-EXEC f64 output word stores ### 📊 Changes **2 files changed** (+4 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_f64_conversion.py` (+2 -3) 📝 `tests/test_f64_output_modifiers.py` (+2 -3) </details> ### 📄 Description > Carried over from **old PR 10000** by `WebIdentity1` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10000`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `WebIdentity1`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116967070 ### What and why The hand-written f64 conversion and add fixtures keep EXEC fully active. The translator emits a direct `OpStore` of each computed word in that case, but these two structural tests still require an `OpLoad` and `OpSelect` of the old destination. On `main` d083a2cc3, that stale shape fails all six conversion modifier cases and all seven add modifier cases. The tests now follow the computed value through conversion/add, scaling, clamp, and bit extraction to the direct store. The `NoContraction` checks remain. Production translation is unchanged; separate semantic tests cover masked execution. ### Tested macOS, Python 3.12, synthetic hand-written listings only; no GPU or game files: - Baseline: `tests/test_f64_conversion.py` fails six modifier subtests; `tests/test_f64_output_modifiers.py` fails seven. - Head: both files pass (3 tests, all modifier cases). - Related tests pass: `test_f64_transcendentals.py` (2), `test_f64_omod_probe.py` (8), `test_f64_float_controls.py` (3), `semantic/test_valu_add_f64.py` (8), `semantic/test_valu_cvt_f32_f64.py` (58), `semantic/test_active_cache.py` (9), and `semantic/test_carry_exec_mask.py` (9). - `python3.12 -I scripts/check_no_game_data.py` on both changed files, `compileall`, and `git diff --check` pass. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:30 +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#321
No description provided.