mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #453] [MERGED] shader_diff: exercise scalar addition and carry (s_add_u32) #504
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#504
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/453
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq/shader-diff-scalar-add📝 Commits (1)
d94a025shader_diff: exercise scalar addition and carry📊 Changes
3 files changed (+141 additions, -43 deletions)
View changed files
📝
tests/test_shader_diff.py(+11 -12)➕
tests/test_shader_diff_scalar_add.py(+87 -0)📝
tools/shader_diff.py(+43 -31)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123163799
What changed
tools/shader_diff.py: Generates_add_u32from seeded SGPRs by default and add--opsfiltering for focused runs and replay, exporting both the running sum andscccarry into the two least-recently-written export VGPRs so both CPU oracles compare them.tests/test_shader_diff_scalar_add.py&tests/test_shader_diff.py: Deterministic synthetic tests covering default generation,--ops s_add_u32replay, ordinary addition, 32-bit wraparound (0xffffffff + 1,0xffffffff + 2), negative mismatch control, and updated fixture seeds preserving register-allocation boundary coverage.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):pytest tests/test_shader_diff.py(20/20),test_shader_diff_exit.py(18/18),test_shader_diff_scalar_add.py(4/4), 10/10--ops s_add_u32runs, 3/3 self-test canaries,check_no_game_data.py, LF check — all passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.