shader: add qword return forms #1061
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1061
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1061/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?
@lambirou on GitHub · 2026-11-23 23:56 UTC · original
lambirou:shader/qword-return-forms→main· +34 −8 · 3 files · 1 commits · closed without mergingChange
Complete the qword
_rtnfamily in the private LDS compute path. The five forms already landedby #942 (add, sub, rsub, and, or) are kept; this adds:
ds_xor_rtn_b64ds_min_rtn_i64ds_max_rtn_i64ds_min_rtn_u64ds_max_rtn_u64The lowerer validates the returned destination pair, captures the old pair before any write and
returns it beside the updated pair.
ds_inc_u64andds_dec_u64remain for XCL-16.Verification
python -B tests/compute_store_check.py binary <llvm-mc> <llvm-objcopy> <libLLVM-23>ctest --preset dev --no-tests=error -R '^compute_store_aot_lds_qword_' -Vcase, 0 mismatches.
Windows 10 Pro 26H2 build 26300.10075, debug layer unavailable, 320 words compared per
case, 0 mismatches.
_rtnnames are checked explicitly. The fixture aliases destination and source andcompares both the old and new pairs for one and two groups.
ds_add_rtn_u64word 2,ds_min_rtn_i64word 2,ds_max_rtn_i64word 70), and a signedcomparison for unsigned min/max (word 0).
docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 237 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
shader/qword-return-forms, head0749207, based on1a6425e.ds_grouprejects a gfx1013 fixture before the DS instruction, so this PR does not claim agfx1013 test. Extending that profile is a separate change if the acceptance requires it.
docs/experiments.mdrecords that the ten returning qword operations copy the old pair andthat the fixture aliases destination and data. No README row changes.
output was used. The change is a source-built gfx1030 fixture and a CPU reference.
ds_inc_u64/ds_dec_u64and their return forms. A future change canwiden
ds_groupto gfx1013 with its own evidence.Checklist
@R0Y00 on GitHub · 2026-11-24 00:02 UTC · original
These five returning forms already have a pending implementation in #944, after the #942 prerequisite. Please coordinate with @stan495 in that PR before changing the same LDS path again. An independent comparison of signed-high/unsigned-low ties, overlap and the old-value mutation would be useful. We can retain distinct test coverage with attribution in one candidate.
@lambirou on GitHub · 2026-11-24 00:34 UTC · original
Closing in favor of #944 per maintainer review. The implementation is the same five returning forms; #944 is the one candidate. Our independent WARP/hardware, tie, overlap and old-value-mutation coverage is described in #944 and the branch is retained locally if a test-only follow-up is useful.
Pull request closed