shader_diff: exercise scalar addition and carry (s_add_u32) #453
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!453
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/453/head"
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?
@EdenBendheim on GitHub · 2026-11-24 05:40 UTC · original
EdenBendheim:ubiq/shader-diff-scalar-add→main· +141 −43 · 3 files · 1 commits · merged 2026-11-24 08:52 UTCClaim: #14
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.@QemmHD on GitHub · 2026-11-24 08:52 UTC · original
Merging. Why merged: the shader differential runner now covers scalar add and carry (s_add_u32), and replay commands include --ops.
Why it's good: test-harness only; on main
1c93c86: shader_diff tests 38 -> 42 (11 fail without the change); repo-consistency set 563/563.AI-assisted (Claude Code, Claude Opus 5.5).