upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorplentilha <35773234+plentilha@users.noreply.github.com>2026-11-22 12:21:23 -0300
committerplentilha <35773234+plentilha@users.noreply.github.com>2026-11-22 12:21:23 -0300
commit69bd312336692b1c0ea5a1398fe8061bf91022cb (patch)
tree08b8a1ef05afa9e7697cd64a7219f2cdfa68eaf0 /runtime/src/pe_loader.cpp
parent6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff)
wave64_halves: fix soundness gaps in RMW, SCC, movrel, s_bfm_b64, and EXEC tracking
Closes several soundness gaps where partition-dependent wave64 VS/PS/GS programs could be classified as Tier A or B instead of Tier C: - RMW destinations & s_pack: track in-place read-modify-write sources (s_addk_i32, s_mulk_i32, s_cmovk_i32, s_cmov_b32/b64, s_bitset*, v_*fmac/mac*, v_dot*c*), remove s_pack from NO_DEST, handle v_swap_b32 rank/base/tag/uniformity swap (conservatively unioning under narrowed/elected exec), and attach implicit vcc (len(srcs) == 2), scc (s_cmovk_i32), and m0 (MOVREL_OPS). - SCC tracking: add SCC-preserving scalar ops (s_mul, s_pack, s_sext, s_flbit, s_ff0/ff1, s_brev, s_bfm, s_bitreplicate, s_get_waveid) to SCC_LESS, stop s_ff1_i32_b64 from marking SCC as a wave vote, and keep s_bcnt0_*/s_bcnt1_i32_b32 SCC taint without creating a vote. - s_bfm_b64 & dynamic register indexing: taint s_bfm_b64 with LANE; propagate VGPR/SGPR taint, mask-SGPR/parked-VGPR-mask usage (MASKD | X), elected-lane taint, uniformity/literal invalidation, and stale SGPR checks across v_movrels_b32, s_movrels_b32/b64, v_movreld_b32, v_movrelsd_b32, v_movrelsd_2_b32, and v_swaprel_b32. - EXEC / mask-half rules: check s_*_saveexec_b32 / s_*_wrexec_b32 via mask-half, handle s_andn1_saveexec_b*/s_andn1_wrexec_b*/s_andn2_wrexec_b64 narrowing and destination tokens accurately, evaluate SAVEEXEC source before overwriting dest, and check EXEC presence/operand order in s_and_b64 / s_or_b64 / s_andn2_b64. - Add synthetic regression classification and 1x64-vs-2x32 wave-interpreter execution tests in tests/semantic/test_wave64_halves_soundness.py. Claim: https://github.com/ItsNotRexed/Leonida/issues/1745#issuecomment-7080924095
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions