Tests: check integer min3 / max3 / med3 on the GPU #1199
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1199
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1199"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@jesuarchive on GitHub · 2026-11-24 13:08 UTC · original
jesuarchive:tests/vminmax3-int→main· +69 −0 · 1 files · 1 commits · openv_min3/max3/med3fori32,u32andi16are translated (emit.rs) but had no GPU test. The open test PRs cover thef32,f16andu16forms (#686, #738, #739). This adds the integer ones, test-only.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_min3_max3_med3_integers. It runs triples of six values that order differently as signed and unsigned, with repeats: 0, 1, the signed maximum and minimum, -1 and a middle value. These are 32-bit for thei32/u32forms. For the_i16forms they sit in the low halves and the high halves hold other values. Only the low half of an_i16result is checked, since what a 16-bit VALU op leaves in the high half is discussed in #1115. Runs on every adapter throughgpu_waves().Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 from the Windows SDK; debug.cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware, no wave64).main47efa2eon the same machine: 741 / 0 / 41, the same two skipped.cargo test -p xcl --lib -- gpu_min3_max3_med3_integers --nocapture --test-threads=1: 1 passed, not skipped (wave32 pass only on this adapter).emit.rs, reverted:v_min3_i32comparing unsigned,v_med3_u32returning the maximum,v_max3_i16comparing unsigned. The test fails on each, naming the instruction.Regression run
Not tested
_i16results (see above);OP_SELon the_i16forms.AI use
@DavidM1911 on GitHub · 2026-11-24 13:18 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib med3: 1 passed, 0 failed —gpu_min3_max3_med3_integerson real hardware.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@bjarngard on GitHub · 2026-11-24 13:23 UTC · original
Test report for head
6849439(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_min3_max3_med3_integerspassedgpu_waves(), so on this adapter both the wave64 and the wave32 pass ranNot tested: the high half and
OP_SELof the_i16forms (beyond what the test checks), Intel, Wine.AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.