cpp-migration: lower v_add_nc_i32, v_sub_nc_i32 and clamped 32-bit add/sub in the direct compute path #3009
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#3009
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 04:40 UTC · original
Part of the instruction-coverage item of #2935, found with the same per-opcode VOP3 probe as #2985.
The direct C++ compute path refuses:
v_add_nc_i32andv_sub_nc_i32(VOP3 only), withdirect DXIL lowering for <name>;clampforms ofv_add_nc_u32,v_sub_nc_u32andv_subrev_nc_u32, withdirect ALU operand modifiers.LLVM 15 emits these forms for saturating arithmetic.
llvm.sadd.sat.i32,llvm.ssub.sat.i32,llvm.uadd.sat.i32andllvm.usub.sat.i32selectv_add_nc_i32 … clamp,v_sub_nc_i32 … clamp,v_add_nc_u32_e64 … clampandv_sub_nc_u32_e64 … clampfor gfx1013.Proposed:
_i32, unsigned for_u32.I am taking it. AI-assisted.