cf_diff: the scalar "not equal" condition is s_cmp_lg, not s_cmp_ne #7
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!7
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/7/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?
@wavehs on GitHub · 2026-11-24 01:29 UTC · original
wavehs:cf-diff-scalar-lg→main· +5 −1 · 1 files · 1 commits · merged 2026-11-24 01:40 UTCClaimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches
tools/cf_diff.py.Depends on: none.
What and why
CCSis shared by the fuzzer's vector compares (v_cmp_ne_*exists in VOPC) and by the scalarsifshape, which emitteds_cmp_ne_u32. SOPC has noneencoding —s_cmp_lg_*is the RDNA2 "less-than-or-greater-than" form, andrdna2spirvcorrectly refusess_cmp_ne_*(tests/semantic/test_sopc_validation.pylists it as a nonexistent mnemonic). One of the six seeded programs therefore came back astranslator unsupported: s_cmp_ne_u32:(and the same for
[dispatch-loop-32]).The fuzzer now maps the condition to
lgat the scalar emission site only; the vector compares keepv_cmp_ne_*.cf_refalready treatsneandlgas the same predicate, so the reference side is unchanged.Tested
main@30daa6958, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files,spirv-valfor the translated programs:tests/test_cf_diff.pymain@30daa6958structured-32anddispatch-loop-32fail withpass 5 != 6test_cf_diff.py+test_cf_ref.py)tests/semantic/test_sopc_validation.pystill passes (79 passed with the two files above),compileallclean,check_no_game_data.pyclean.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change; the translator is right to refuses_cmp_ne_*.)