Repository navigation
Recompiler: keep entered far-jump sequences indirect - #865
Conversation
An incoming branch can bypass GETPC and invalidate the fixed-target assumption. Collect direct and prospective far targets before publishing annotations, and preserve indirect jumps when a target enters their calculation. Fixes xcl-dev#863.
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Independent Windows check on I also tested a conditional branch jumping backwards into each of the four instruction positions, for both add and subtract sequences. On main, entering the low add still yielded a fixed target of 0x114. All eight cases passed on the PR: entry at GETPC retained the expected fixed target, and the three middle-entry cases remained indirect. All inputs were synthetic. No retail game was run on this machine. OpenAI Codex (GPT-6.2 Astra) assisted with verification. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Test report: NVIDIA RTX 5060 Ti (wave32), head Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the commands above and wrote this report. No code changes. |
A branch into the middle of a far-jump address calculation can bypass GETPC. The recognizer still assigned SETPC a constant target, making later control-flow analysis assume an address that the incoming SGPR state does not guarantee. Fixes #863.
What is in it
Tested
Independent Windows validation reported by ettehn on this exact head: RTX 5070 Ti Laptop, driver 621.24, Windows 11 x64, Rust 1.97.1 MSVC debug. Full workspace run reported 716 passed, 0 failed, 41 ignored, with two passing tests reporting SKIPPED (no wave64). Both new regression failures were reproduced against main, all three new tests passed on the PR, and eight extra backward-entry cases passed. These results were supplied by that contributor.
Regression run
Reported by Anon64 on NVIDIA RTX 3060 12 GB, driver 581.80, Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0, release. Same retail title for 60 seconds, clean tree at each commit. Blocks copied verbatim from that report.
main:
PR head:
Not tested
The retail run does not establish whether the title reaches the changed code. Native wave64 coverage was skipped in the reported Windows workspace run. Windows full-suite and retail results above are attributed contributor reports. The author's local validation remains the standalone WSL decoder harness. Other GPU families and retail titles remain unverified.
AI use
Codex with GPT-6.1-sol investigated the issue, wrote the fix and tests, ran the standalone checks and drafted this description.