diff options
| author | Shadman PC <iamanthonytony@gmail.com> | 2026-11-22 18:53:10 +0600 |
|---|---|---|
| committer | Shadman PC <iamanthonytony@gmail.com> | 2026-11-22 19:29:38 +0600 |
| commit | 06cec1d6bac9ca5d20114bc5285736f7b331e47b (patch) | |
| tree | ac35f0b30503a3541b4c218f2538d4dce165e8dc /runtime/test/queue_proxy_test.cpp | |
| parent | 77506e2f6dd0f6f148adda0619ee24ca59fa5a1d (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/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions