GPU test cs_w32_movrels64: s_movrels_b64 #179

Closed
github-bot wants to merge 7 commits from github-bot/gh-179 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:36 UTC · original
ubiquitarianism:old-pr/9913 → main · +209 −3 · 5 files · 7 commits · closed without merging

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

#1598 merged s_movrels_b32/s_movrels_b64 with CPU-only checks, and #1850's cs_w32_pk_rel_ext covers only the b32 form. This adds a GPU fixture, runtime/test/shaders/cs_w32_movrels64.asm.

Re-submission of #4337. #4337 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #4337 by: vibryxcx (RX 6800), Kev-Ball (RTX 3080 Ti), kapitche (Windows 11), sperm (RX 9070 XT), lunarminus (760M), javdc (Steam Deck LCD), Racurs156 (Windows 11), Mortify7612 (AMD Radeon RX 9060 XT), Itschotsch (RTX 4090), tylerstraub (RTX 5090).

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.

**@⁠Andretuta** on GitHub · 2026-11-24 02:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/179) `ubiquitarianism:old-pr/9913` → `main` · +209 −3 · 5 files · 7 commits · closed without merging > Carried over from **old PR 9913** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9913`, 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. > `LouisRiverstone`: 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): `#1598` merged `s_movrels_b32`/`s_movrels_b64` with CPU-only checks, and `#1850`'s `cs_w32_pk_rel_ext` covers only the `b32` form. This adds a GPU fixture, `runtime/test/shaders/cs_w32_movrels64.asm`. Re-submission of `#4337`. `#4337` was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current `main`. Checked on `#4337` by: vibryxcx (RX 6800), Kev-Ball (RTX 3080 Ti), kapitche (Windows 11), sperm (RX 9070 XT), lunarminus (760M), javdc (Steam Deck LCD), Racurs156 (Windows 11), Mortify7612 (AMD Radeon RX 9060 XT), Itschotsch (RTX 4090), tylerstraub (RTX 5090). No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`.
#1598 merged s_movrels_b32/b64 with CPU-only checks, and #1850's fixture covers
only the b32 form. Lane 0 checks the pair read at odd and even M0, M0 from
v_readfirstlane (not foldable), the b32 form at a base register, a
destination overlapping the source, and SCC kept. Registered in check.py,
run_gpu_tests.py and regen_fixtures.py; tests/semantic/
test_movrels64_fixture.py runs it on the CPU against an SGPR-file model.
llvm-mc 23 rejects the odd-based 64-bit SGPR pair s[21:22] (invalid register
alignment), and one fixture it can't assemble stops the whole GPU run
(MKmajster's finding, TEST-961). The overlap case is now
s_movrels_b64 s[22:23], s[20:21] with M0 = 1: it reads s21, s22, which
overlaps the destination s22, so W[1], W[2] only if the source is read
first. The fixture test checks that every SGPR range starts at an even
register.
python -I on the file failed with ModuleNotFoundError: support, as the folder
was not on sys.path (found by @justr4mzi on #4323, the same template). It is
now inserted, as test_cs_shared_memory_limit does.
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:41 +00:00
Author
Owner

@⁠ImLele69 on GitHub · 2026-11-24 11:37 UTC · original

Tested on Linux, merged onto main 21625bca8 (PR head ad3ce0722, merges cleanly).

GPU: NVIDIA GeForce RTX 2070 SUPER (Turing, subgroup 32), proprietary driver 620.70.06, Fedora 44, llvm-mc 22.1.8, SPIRV-Tools 2026.1.

Run This PR main alone
run_gpu_tests.py native 198/249 passed, 49 skipped 197/248 passed, 49 skipped
LEONIDA_W64_EMULATE=1 230/249 passed, 17 skipped 229/248 passed, 17 skipped
run_semantic_tests.py tests/semantic 466 files, 6113 tests, 0 files failed in 112 s with 16 jobs 465 files, 6108 tests, 0 files failed

New fixture cs_w32_movrels64: PASS in both modes.

The only failures in both runs are the known cs_imgload_tfe / cs_imgload_d16_tfe pair (#31), as on main. No regressions.

AI-assisted: yes (Claude Code ran the build and tests on my machine; numbers are the runners' own output).

**@⁠ImLele69** on GitHub · 2026-11-24 11:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/179#issuecomment-7130336857) Tested on Linux, merged onto `main` `21625bca8` (PR head `ad3ce0722`, merges cleanly). GPU: NVIDIA GeForce RTX 2070 SUPER (Turing, subgroup 32), proprietary driver 620.70.06, Fedora 44, llvm-mc 22.1.8, SPIRV-Tools 2026.1. | Run | This PR | `main` alone | |---|---|---| | `run_gpu_tests.py` native | 198/249 passed, 49 skipped | 197/248 passed, 49 skipped | | `LEONIDA_W64_EMULATE=1` | 230/249 passed, 17 skipped | 229/248 passed, 17 skipped | | `run_semantic_tests.py tests/semantic` | 466 files, 6113 tests, 0 files failed in 112 s with 16 jobs | 465 files, 6108 tests, 0 files failed | New fixture `cs_w32_movrels64`: PASS in both modes. The only failures in both runs are the known `cs_imgload_tfe` / `cs_imgload_d16_tfe` pair (#31), as on `main`. No regressions. AI-assisted: yes (Claude Code ran the build and tests on my machine; numbers are the runners' own output).
Author
Owner

@⁠LouisRiverstone on GitHub · 2026-11-25 00:24 UTC · original

Taken over by its author in #1447 (rebased on main). This draft can be closed.

**@⁠LouisRiverstone** on GitHub · 2026-11-25 00:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/179#issuecomment-7148480498) Taken over by its author in #1447 (rebased on main). This draft can be closed.
github-bot closed this pull request 2026-11-27 04:04:12 +00:00
Author
Owner

@⁠Andretuta on GitHub · 2026-11-27 04:01 UTC · original

Closing carried-over draft: taken over by original author in #1447 (OLD-9913).

**@⁠Andretuta** on GitHub · 2026-11-27 04:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/179#issuecomment-7209460486) Closing carried-over draft: taken over by original author in #1447 (OLD-9913).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.