shader: lower s_lshl_b64, s_lshr_b64 and s_ashr_i64 in the direct compute path #3062
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#3062
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?
@legacy-code-archaeologist on GitHub · 2026-11-27 13:21 UTC · original
Part of #2935 (closing the remaining
gfx2hlsl.pygaps in the direct C++ compute path).src/gfx1013_direct_compute.inldoes not yet lower SOP2 64-bit scalar shiftss_lshl_b64,s_lshr_b64ands_ashr_i64(they reach thedirect ALU operand modifiers/unsupported wave64 scalar operationfallback).Scope:
s_lshl_b64,s_lshr_b64ands_ashr_i64in the direct compute path matchingtools/startup/gfx2hlsl.py(scalar_wide_op):s[0..104]even) orvcc(106).S0: aligned SGPR pair, inline integer (-16..64), or 32-bit literal (zero-extended for logical shifts, sign-extended fors_ashr_i64).S1: general SGPR (s0..s105), inline integer, or 32-bit literal, masked to& 63.SCC = (D != 0).src/gfx1013_compute_native.cppsymbolictransfer()pair clearing so_i64SOP1/SOP2 instructions (s_ashr_i64) clears[dst + 1]just like_b64.s_lshl_b64,s_lshr_b64,s_ashr_i64as overwritingSCCinuses_scc_after().tests/native_salu_shift64_check.py,tests/cmake/native_salu_shift64.cmake) anddocs/experiments/native-direct-salu-shift64.md.I am taking it. AI-assisted.