cpp-migration: lower v_ashrrev_i64 and v_mad_i32_i24 in the direct C++ compute path #2991
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#2991
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 03:29 UTC · original
Target branch
cpp-migration. Part of #2935 (instruction coverage: integer ALU). I am taking this; please say if you already have it locally and I will drop it.Gap: the direct compute path lowers the unsigned or logical forms but refuses their signed counterparts. Both fail with
direct DXIL lowering for <name>in the same per-opcode VOP3 probe as #2985 (cpp-migration05438d65):v_ashrrev_i64, next to thev_lshrrev_b64/v_lshlrev_b64lowering from #2952.v_mad_i32_i24, next tov_mad_u32_u24.gfx2hlsl.pylowers both:op_v_ashrrev_i64throughshift64withi64_words(..., signed=True), and'v_mad_i32_i24'in its VOP3 table.Plan:
v_ashrrev_i64: the shifted-value rules of the logical shifts, with thegfx2hlsl.pysource rule for the signed form. A 32-bit literal is sign-extended to 64 bits instead of zero-extended. Then an arithmeticashr i64by S0[5:0].v_mad_i32_i24: sext(S0[23:0]) * sext(S1[23:0]) + S2, modulo 2^32.AI-assisted.
@MasterDomino on GitHub · 2026-11-27 03:47 UTC · original
Completed by #2994, merged into
cpp-migrationasc6908cce. Merges into a non-default branch do not close issues automatically.