[PR #186] cs_lds_xchg64_ext: judge ds_or_rtn_b64's returned pair and ds_max_rtn_f32's two results apart #238

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/186
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9918


📝 Commits (1)

  • 68a8260 cs_lds_xchg64_ext: judge ds_or_rtn_b64's returned pair and ds_max_rtn_f32's two results apart

📊 Changes

4 files changed (+15 additions, -10 deletions)

View changed files

📝 docs/design.md (+1 -1)
📝 runtime/test/shaders/check.py (+1 -1)
📝 runtime/test/shaders/cs_lds_xchg64_ext.asm (+12 -7)
📝 scripts/run_gpu_tests.py (+1 -1)

📄 Description

Carried over from old PR 9918 by Sunkiller-qc in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9918, 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.
Sunkiller-qc: 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):

Thanks for d578b48, great coverage. Two small gaps: the returned pair of ds_or_rtn_b64 wasn't judged, and XORing ds_max_rtn_f32's memory value with its returned value couldn't tell a swapped result apart. This fixes both within the 8-word dump (out[2] now also folds in the returned pair, out[7] is the returned value of ds_max_rtn_f32 alone, its memory word is folded into out[6]) and resolves the contradictory GPU-verified wording in design.md.

The new expected words were derived by hand from the header and haven't been re-run on a GPU, so a GPU run would be appreciated.


🔄 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/186 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9918` --- ### 📝 Commits (1) - [`68a8260`](https://github.com/ubiquitarianism/leonida/commit/68a826062501abe427b26625c2b682291850c21c) cs_lds_xchg64_ext: judge ds_or_rtn_b64's returned pair and ds_max_rtn_f32's two results apart ### 📊 Changes **4 files changed** (+15 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -1) 📝 `runtime/test/shaders/check.py` (+1 -1) 📝 `runtime/test/shaders/cs_lds_xchg64_ext.asm` (+12 -7) 📝 `scripts/run_gpu_tests.py` (+1 -1) </details> ### 📄 Description > Carried over from **old PR 9918** by `Sunkiller-qc` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9918`, 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. > `Sunkiller-qc`: 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): Thanks for d578b48, great coverage. Two small gaps: the returned pair of ds_or_rtn_b64 wasn't judged, and XORing ds_max_rtn_f32's memory value with its returned value couldn't tell a swapped result apart. This fixes both within the 8-word dump (out[2] now also folds in the returned pair, out[7] is the returned value of ds_max_rtn_f32 alone, its memory word is folded into out[6]) and resolves the contradictory GPU-verified wording in design.md. The new expected words were derived by hand from the header and haven't been re-run on a GPU, so a GPU run would be appreciated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#238
No description provided.