Repository navigation
Recompiler: first structured form stops at a taken jump to a pending target and runs an else it jumps into (#701) - #721
dadnotdaddy wants to merge 1 commit into
Conversation
…ing target and runs an else it jumps into (xcl-dev#701) A jump whose target already has a pending skip flag left the open if (!(xcl_skip_...)) guard in place, so the items after it still ran: any raised flag now closes the guard, and the next item re-tests it. A jump from the if branch to the start of the else branch is not raised from that level, so else_ok accepted the if / else and the else never ran: such an if is now a plain if, the else running under the skip flag of the jump over it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test run of Tested
Review: Both halves are small: a skip flag raised inside an open guard now closes it, and Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Independent test report on Tested
Not tested
AI use
|
|
Test report for Tested
17 test binaries: 701 passed, 1 failed, 41 ignored. Same machine, This PR's tests:
Failures:
SKIPPED (no wave64 on this GPU): AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output. |
|
A wider check of
The general form matched the CPU reference in all 1 200 GPU programs both times. So on this corpus the fix covers the whole class, not only the two shapes in #701. The structured count moves from 1117 to 1119 because Tested: NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0, debug. AI-assisted (Claude Code). |
|
Retail regression run for Tested
Regression run main ( PR ( Not tested
AI use
|
Fixes #701: the first structured form ran code after a taken jump to a pending target, and skipped an else that the if branch jumps into.
What is in it
crates/xcl/src/gpu/recomp/mod.rs: a skip flag set inside an open guard closes it, so the next item tests the flags again;else_okrefusesif/elsewhen the if branch jumps to the else's start.crates/xcl/src/gpu/recomp/tests.rs:first_structured_form_follows_jumps_to_pending_targets_and_into_the_else, both shapes from the issue, structured andstructured: false.Tested
maingives the issue's results ([1,1,1,1,1], [1,1,0,0,1]); with the fix [1,1,0,1,0], [1,1,0,1,1].cargo test --workspace -- --test-threads=4: 658 passed, 3 failed, 21 ignored. The 3 (title_textures::placed_title_textures_share_vram_and_preserve_pixels,title_textures::transitions_apply_when_their_list_is_submitted,vram::d32s8_targets_take_their_own_size_of_video_memory) fail the same way onmainin the full run here and pass when run alone, onmainand on this branch.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).Regression run
scripts/smoke.ps1on. A smoke run from a tester would be appreciated.Not tested
AI use