Repository navigation
Mesh: lower s_cmp_le_u32, v_cmpx_ne_u32 and v_cmpx_lt_u32 (Part of #3703) - #3713
Merged
Merged
Conversation
Accept s_cmp_le_u32 in the mesh scalar ALU so SCC is the unsigned <= result, and narrow EXEC for v_cmpx_ne_u32 the same way as v_cmpx_eq_u32. On this target CMPX writes EXEC only. AI-assisted (Cursor) Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Replace EXEC with the unsigned less-than predicate. The compare does not write VCC or an SGPR destination. v_cmpx_lt_i32 stays refused. AI-assisted (Cursor) Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Allow DXC's -1 rendering for 0xFFFFFFFF while keeping the fixture IR's 4294967295 spelling and preserving operand order in compare checks. AI-assisted (Cursor) Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Contributor
Author
|
Tested on the Windows test PC at head d60a1f7, dev preset.
WARP/CPU Hardware mesh was 78/78 at AI-Assisted |
SimSalabimse
marked this pull request as ready for review
December 1, 2026 09:53
R0Y00
approved these changes
Dec 1, 2026
R0Y00
left a comment
Owner
There was a problem hiding this comment.
Reviewed the CMPX EXEC intersection and unsigned scalar comparison. Integrated native_direct_mesh passed locally, including the comparison and destination controls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3703 (the s_cmp_le_u32 and v_cmpx_ne_u32 items, plus v_cmpx_lt_u32).
The native mesh frontend now lowers s_cmp_le_u32 (SOPC, SCC = icmp ule), v_cmpx_ne_u32, and v_cmpx_lt_u32 (both EXEC-only writes, no VCC), next to the existing v_cmpx_eq_u32 path. v_cmpx_lt_u32 uses icmp ult. It was seen as the next wall in a game run.
Source-built fixtures in tests/native_direct_mesh_check.py cover equal, less, and greater pairs, the unsigned wrap cases (0 vs all-ones, and the reverse), and a self-compare that gives an empty EXEC, for both s_cmp_le_u32 and v_cmpx_lt_u32. s_cmp_le_i32 and v_cmpx_lt_i32 stay refused.
Linux g++ 13.3 and clang++ 18.1 pass with -Werror=narrowing. native_direct_mesh is a Windows-only dxc test and has not been run on Windows yet, so this is a draft until the Windows test PC run passes.
This sits beside #3666, which adds v_cmpx_eq_i32 and v_cmpx_lt_f32 only. If that one merges first, this may need a trivial rebase.
AI-assisted (Cursor)