diff options
| author | JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com> | 2026-11-24 17:48:02 +0000 |
|---|---|---|
| committer | JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com> | 2026-11-24 17:48:02 +0000 |
| commit | 091cd9680bc90a7bbad8ec0333be3878e198b2e3 (patch) | |
| tree | 0459d6f26e81deeb68163317e53da7d13d454151 /runtime/src/main.cpp | |
| parent | f7a338b14d5b70b6d183be5f1e7427582d41e3b3 (diff) | |
rdna2spirv: restrict restore_vcc_tuples to reachable offsets and protect branch targets
Do not scan unreachable embedded data words skipped by s_branch or after s_endpgm / s_setpc_b64 in restore_vcc_tuples. Walk only offsets reachable from code_start via matched instructions, fall-through, and direct/folded far branches, and discard any restored instruction whose interior dwords are targeted by a reachable branch.
Fixes the synthetic edge case reported on #596 / #674 by @Snooozs where an unreachable data word equal to the first dword of an 8-byte vcc-tuple load right before a branch target caused restore_vcc_tuples to swallow the target instruction and fail with 'branch into data'.
Adds regression tests covering: skipped data word before a matched branch target, skipped data word before a vcc-tuple load at the branch target, data word after s_endpgm before a branch target, and fall-through into a data word directly before a branch target.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions