test: follow full-EXEC f64 output word stores #270

Closed
Andretuta wants to merge 1 commit from upstream-pr/270 into main
Andretuta commented 2026-11-24 02:56:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:56:36Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465217259 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/270). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:56:36Z. --- > 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.
aslan2142 commented 2026-11-25 19:10:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T19:10:00Z.


Closing: everything this pull request changes is already in main. Merging it into main (490f5b9ec) leaves every file as it is. The same change landed with #26.

Thanks for the work! If something here is still missing from main, open a new pull request with what's left.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7171907568 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/270#issuecomment-7171907568). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T19:10:00Z. --- Closing: everything this pull request changes is already in `main`. Merging it into `main` (`490f5b9ec`) leaves every file as it is. The same change landed with #26. Thanks for the work! If something here is still missing from `main`, open a new pull request with what's left. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!270
No description provided.