Repository navigation
Conversation
…e branch (xcl-dev#701) In the first structured form, a conditional jump inside the if branch of an if / else to the start of the else branch ended at the end of the if branch (`hi`), so it was taken for a skip over the rest of the branch: an if with no else, whose body included the s_branch over the else. The jump then fell into the code after the else and the else branch never ran. In an if branch with an else (exit set), a jump to `hi` is raised as a skip flag instead; the if / else is then rejected as before and the else runs under the flag. The test runs the program on the GPU in the structured form and in the pc chain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32). Tested
Regression run ( main ( PR #728 ( Not tested: Debug build, AI use: Antigravity ( |
|
Test report for Tested
16 test binaries: 685 passed, 1 failed, 41 ignored. Same machine, This PR's tests:
Failures:
16 test binaries instead of 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. |
|
Verified with the CPU-reference harness from #701, ported to
With both PRs, both #701 tests and both of your tests pass, and the full suite gives 715 passed, 0 failed, 41 ignored (main: 701 / 0 / 41; +14 = the 2 PR tests and 12 ported harness tests). No program that walked right on
AI-assisted (Claude Code, Claude Opus 5.5). |
Part of #701 (shape 2). In the first structured form, a conditional jump inside the if branch of an if / else to the start of the else branch ends at the end of the if branch (
hi).item_attook it for a skip to the end of the branch and built an if with no else around the rest of the branch, which includes thes_branchover the else. The jump then lands after the else and the else branch never runs. Now, in the if branch of an if / else (exitis set), a jump tohiis raised as a skip flag; the if / else is rejected as before and the else branch runs under the flag.Shape 1 of #701 (a second jump to a pending flag) is a separate bug and a separate PR: stacked on this one only for the test helper.
What is in it
crates/xcl/src/gpu/recomp/mod.rs(item_at): thet == hi && exit.is_some()case no longer forms an if.crates/xcl/src/gpu/recomp/tests.rs:run_scalar_program(runs a scalar-only program and returns s0..s15) andgpu_a_jump_from_the_if_branch_to_the_else_branch_runs_it, a hand-written program run on the GPU in the structured form and in thepcchain, for the four (s10, s11) combinations.Tested
x86_64-pc-windows-gnullvm(llvm-mingw 20261117), DXC 1.9.2609.5, debugmain(structured: true, s10 = 1, s11 = 0:[1, 0, 0, 1], want[1, 0, 1, 1]) and passes with the fixcargo test -p xcl --lib -- --test-threads=4(with DXC): 659 passed, 3 failed, 21 ignored on this branch plus the PR below; onmainthe same run gives 657 passed and the same 3 failures: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. They pass whenhle::d3d12xruns alone, so they look like GPU contention on this 4 GB card, not a change of mine.Regression run
None: I have no title for
scripts/smoke.ps1. This changescrates/xcl/src, so the twoxcl-smokeblocks have to come from someone with a title.main:
not run
PR:
not run
Not tested
scripts/smoke.ps1; wave64 (this GPU has none); AMD; MSVC; the rest of the workspace (e2e, integration tests) on this branchmainAI use