mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #7] [MERGED] cf_diff: the scalar "not equal" condition is s_cmp_lg, not s_cmp_ne #67
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#67
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/7
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:cf-diff-scalar-lg📝 Commits (1)
27a7a0ccf_diff: the scalar 'not equal' condition is s_cmp_lg, not s_cmp_ne📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
tools/cf_diff.py(+5 -1)📄 Description
Claimed 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_*.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.