diff options
| author | Wail <116732676+wail-arch@users.noreply.github.com> | 2026-11-24 00:01:20 +0100 |
|---|---|---|
| committer | Fin <fin@mace.law> | 2026-11-24 09:40:52 -0500 |
| commit | 474dbe2bedf7f6d7d68057f4b9acf08431b48835 (patch) | |
| tree | cea1e3f389789634625292deebfd05509fc9deff /runtime/src/thread_stacks.cpp | |
| parent | f3e26be7c661e97eb4c70464e675a3b32dc149e3 (diff) | |
rdna2spirv: write out a carry-out subtract of a register from itself (AMD Windows driver crash)
v_sub_co_u32 / v_subrev_co_u32 and their _ci_ forms with the same operand
twice were translated to OpISubBorrow %x %x. AMD's Windows driver dies with
an access violation (0xC0000005 in amdvlk64.dll, 32.0.21037.1004 and
32.0.21045.29003, gfx1036) creating a native wave64 compute pipeline in which
that borrow predicates the value operand of an OpGroupNonUniformShuffle.
x - x is 0 with no borrow, so these forms now emit D = 0 - carry in and
borrow out = carry in, with no OpISubBorrow. Values are unchanged; other
operand pairs are translated as before.
Found with crosslane_fuzz.py --seed 880317 --wave 64 --w64-native
--no-maskdata --dpp --ext --programs 400 on a Ryzen 9 9950X3D iGPU:
programs 1 and 181 were harness errors (exit 3221225477) and now match
(399 of 400 match; the other differs only in a hypothesis op, as before).
- docs/design.md: contract row "Carry-out subtract of a register from itself"
- tests/semantic/test_sub_co_same_operand.py: values and borrow mask in
wave32 and native wave64, the emitted form with --wave64-emulate
Not counted over the corpus, and two different registers holding equal
values still reach OpISubBorrow.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions