upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/opus_decoder/src
diff options
context:
space:
mode:
authorJARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>2026-11-24 17:48:02 +0000
committerJARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>2026-11-24 17:48:02 +0000
commit091cd9680bc90a7bbad8ec0333be3878e198b2e3 (patch)
tree0459d6f26e81deeb68163317e53da7d13d454151 /runtime/opus_decoder/src
parentf7a338b14d5b70b6d183be5f1e7427582d41e3b3 (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/opus_decoder/src')
0 files changed, 0 insertions, 0 deletions