mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #711] [MERGED] OLD-7866: restore old upstream PR 7866 - tests/semantic: buffer_load_short_d16_hi keeps both halves in inactive lanes #752
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#752
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/711
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:semantic-d16-hi-inactive-lane📝 Commits (1)
cd92de7tests/semantic: buffer_load_short_d16_hi keeps both halves in inactive lanes📊 Changes
2 files changed (+95 additions, -0 deletions)
View changed files
➕
tests/semantic/fixtures/cs_buffer_load_d16_hi_exec.asm(+17 -0)➕
tests/semantic/test_buffer_load_d16_hi_exec.py(+78 -0)📄 Description
Claimed in the coordination issue as: OLD-7866 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7131591797
Restoration of my original pull request, old upstream PR 7866 in
ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at21625bca8c; the commit applied unchanged (two new files, no conflicts, no old numbers in it).What and why
mainalready gets this right. InGen.buffer_sub(tools/rdna2spirv.py, the end of the function) the loaded half goes in withOpBitFieldInsertandself.dstwrites it to active lanes only.test_buffer_sub_dword.pychecks an inactive lane only for a store.tests/semantic/fixtures/cs_buffer_load_d16_hi_exec.asmis hand-written, wave32.v5, then EXEC is cut to0x5AC3A50F.buffer_load_short_d16_hiintov5, then storesv5from all lanes.tests/semantic/test_buffer_load_d16_hi_exec.pychecks:docs/design.mdrow "8/16-bit MUBUF d16 loads and stores": "Inactive lanes neither load nor store". No translator rule changes.Tested
Linux, Python 3.14.10, CPU only (
spirv_mini_interp), hand-written fixtures; no game files.python -m unittest discover -s tests/semantic -p test_buffer_load_d16_hi_exec.py: 3 tests OK on this branch. With only these two files copied ontomainthe result is the same, sincemainalready behaves this way.store_regin place ofself.dst, ignoring EXEC), this test fails in all 16 inactive lanes.test_buffer_sub_dword.pystill passes with that change, so this is the only test that catches it.python -I scripts/run_semantic_tests.py tests/semantic:main: 465 files, 6 108 tests, 0 failed;python -m compileall -q tools tests,git diff --checkandpython -I scripts/check_no_game_data.pyon both new files: clean.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no rule changes)AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.