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:
authorShadman PC <iamanthonytony@gmail.com>2026-11-22 18:53:10 +0600
committerShadman PC <iamanthonytony@gmail.com>2026-11-22 19:29:38 +0600
commit06cec1d6bac9ca5d20114bc5285736f7b331e47b (patch)
treeac35f0b30503a3541b4c218f2538d4dce165e8dc /runtime/src/pe_loader.cpp
parent77506e2f6dd0f6f148adda0619ee24ca59fa5a1d (diff)
fix(translator): snapshot source literals before destination stores in mov64 and s_mov_b32
In s_mov_b64, snapshot both source halves from sgpr_imm before store_reg and destination assignments to prevent overlapping 64-bit copies (such as s_mov_b64 s[6:7], s[5:6]) from overwriting the high word source before it is read. Likewise read s_mov_b32 source sgpr_imm before dst so self-copies do not invalidate the source entry. Added tests covering s_mov_b64 64-bit pair copies and overlapping copies. Thanks to @josevictorp for catching the overlapping copy issue in PR review.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions