[PR #1447] GPU test cs_w32_movrels64: s_movrels_b64 (OLD-9913) #1477

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1447
Author: @LouisRiverstone
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: carry-old-9913


📝 Commits (3)

  • cf0d9ca GPU test cs_w32_movrels64: s_movrels_b64
  • e781a40 Merge main into
  • 1a460f1 Merge remote-tracking branch 'ubq/main' into carry-old-9913

📊 Changes

5 files changed (+209 additions, -3 deletions)

View changed files

📝 runtime/test/shaders/check.py (+3 -1)
➕ runtime/test/shaders/cs_w32_movrels64.asm (+61 -0)
📝 scripts/run_gpu_tests.py (+4 -2)
➕ tests/semantic/fixtures/disasm/cs_w32_movrels64.s (+49 -0)
➕ tests/semantic/test_movrels64_fixture.py (+92 -0)

📄 Description

Claimed in the coordination issue as: OLD-9913 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148463379)

Replaces the carried-over draft #179. I'm the original author of old upstream PR 9913.

What and why

An old upstream PR merged s_movrels_b32/s_movrels_b64 with CPU-only checks, and the cs_w32_pk_rel_ext fixture covers only the b32 form. This adds a GPU fixture, runtime/test/shaders/cs_w32_movrels64.asm: s_movrels_b64 pairs with an M0 set at run time, an overlapping source and destination pair (even-aligned, because LLVM 22+ rejects s[21:22]), and SCC kept. The fixture is wired into check.py and scripts/run_gpu_tests.py. Its disassembly is in tests/semantic/fixtures/disasm/ and is checked by tests/semantic/test_movrels64_fixture.py.

The old branch's final diff, applied on current main as one commit. It applied cleanly.

Tested

  • python -I scripts/run_gpu_tests.py --filter cs_w32_movrels64: PASS with llvm-mc 21.1 and with llvm-mc 23. Words 0x5EED0111 0x5EED0222 0x5EED0444 0x5EED0555 0x5EED0555 0x5EED0111 0x5EED0222 1, as expected.
  • python -I tests/semantic/test_movrels64_fixture.py: OK.
  • python -I scripts/run_semantic_tests.py tests/semantic: 477 files, 6228 tests, 0 files failed.

The old PR was also checked on real GPUs by other people (RX 6800, RTX 3080 Ti, RX 9070 XT, RTX 4090, RTX 5090, Steam Deck and others), on the branch as it was then.

GPUs tested: llvmpipe (Mesa, LLVM 21.1.8) on Linux under WSL2

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, with how it was confirmed. (n/a: no translator rule changes)

🔄 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/1447 **Author:** [@LouisRiverstone](https://github.com/LouisRiverstone) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry-old-9913` --- ### 📝 Commits (3) - [`cf0d9ca`](https://github.com/ubiquitarianism/leonida/commit/cf0d9ca3566d6464dea8cf2a1c3b6223e21ca089) GPU test cs_w32_movrels64: s_movrels_b64 - [`e781a40`](https://github.com/ubiquitarianism/leonida/commit/e781a40844f565a9dde401fc8897421c711a76ec) Merge main into - [`1a460f1`](https://github.com/ubiquitarianism/leonida/commit/1a460f1e35e032b0888d0e7f5af9895d93a2ce40) Merge remote-tracking branch 'ubq/main' into carry-old-9913 ### 📊 Changes **5 files changed** (+209 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+3 -1) ➕ `runtime/test/shaders/cs_w32_movrels64.asm` (+61 -0) 📝 `scripts/run_gpu_tests.py` (+4 -2) ➕ `tests/semantic/fixtures/disasm/cs_w32_movrels64.s` (+49 -0) ➕ `tests/semantic/test_movrels64_fixture.py` (+92 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9913 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148463379) Replaces the carried-over draft #179. I'm the original author of old upstream PR 9913. ### What and why An old upstream PR merged `s_movrels_b32`/`s_movrels_b64` with CPU-only checks, and the `cs_w32_pk_rel_ext` fixture covers only the `b32` form. This adds a GPU fixture, `runtime/test/shaders/cs_w32_movrels64.asm`: `s_movrels_b64` pairs with an M0 set at run time, an overlapping source and destination pair (even-aligned, because LLVM 22+ rejects `s[21:22]`), and SCC kept. The fixture is wired into `check.py` and `scripts/run_gpu_tests.py`. Its disassembly is in `tests/semantic/fixtures/disasm/` and is checked by `tests/semantic/test_movrels64_fixture.py`. The old branch's final diff, applied on current `main` as one commit. It applied cleanly. ### Tested - `python -I scripts/run_gpu_tests.py --filter cs_w32_movrels64`: PASS with llvm-mc 21.1 and with llvm-mc 23. Words `0x5EED0111 0x5EED0222 0x5EED0444 0x5EED0555 0x5EED0555 0x5EED0111 0x5EED0222 1`, as expected. - `python -I tests/semantic/test_movrels64_fixture.py`: OK. - `python -I scripts/run_semantic_tests.py tests/semantic`: 477 files, 6228 tests, 0 files failed. The old PR was also checked on real GPUs by other people (RX 6800, RTX 3080 Ti, RX 9070 XT, RTX 4090, RTX 5090, Steam Deck and others), on the branch as it was then. GPUs tested: llvmpipe (Mesa, LLVM 21.1.8) on Linux under WSL2 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. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator rule changes) --- <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#1477
No description provided.