xshader: accept immediates in signed no-carry add and subtract #125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/125"
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?
Imported from brcly/TuxBox. Originally posted by smith-3 on 2026-11-25T00:21:21Z.
Summary
Extend #95 to accept integer immediates in
v_add_nc_i32andv_sub_nc_i32, and low-half integer immediates inv_add_nc_i16andv_sub_nc_i16. The 16-bit regression covers writes to either destinationhalf and checks that the other half is preserved. Both regressions use
synthetic RDNA 2 instructions assembled by LLVM.
Checks
32-bit operations and all 48 results for 16-bit operations matched
the expected values. The untouched half was preserved in all 48
16-bit results. All 1,152 GPU readback words matched.
AI-assisted contribution.