Repository navigation
Conversation
|
Overlap note for review: 6 of the 8 instructions this test covers are also covered by #590 (open, earlier): (Found by comparing the
|
|
Thanks for catching the overlap with #590 @joeypercia — my title search missed it. Happy to close or narrow this down to just \�_mul_u32_u24\ / \�_mad_u32_u24\ if #590 lands first. (AI use: Antigravity) |
|
Code audit + Windows MSVC / NVIDIA RTX 5080 GPU test run on Review
Tested
Not tested
AI use: code review and GPU test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above. |
|
Test run of Tested
Review: Overlap with #590 (open), which adds a GPU test for six of these eight instructions ( 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. |
Empirical test report (af64a67)Verified the detached head of PR #699 at Hardware / environment
Commands and results
Observed behavior The fixture compiled a compute shader with DXC and dispatched it on the Arc A770. All eight instruction results agreed with the fixture's CPU reference for each of the 16 checked operand triples. Those cases exercise signed and unsigned 32-bit high-half multiplies, signed and unsigned 24-bit multiplies and multiply-adds, sign extension at the 24-bit boundary, discarded upper operand bits, and wrapping accumulation. Not tested The full GPU workspace suite and game smoke runs were omitted. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr699-focused.log and published. |
Adds a per-instruction GPU test (
gpu_mul_hi_and_24bit_integer_ops) covering 8 RDNA2 integer multiply / multiply-add instructions that previously had no GPU test coverage:v_mul_hi_u32,v_mul_hi_i32,v_mul_u32_u24,v_mul_hi_u32_u24,v_mul_i32_i24,v_mul_hi_i32_i24,v_mad_u32_u24, andv_mad_i32_i24, checked across 16 edge cases (24-bit sign boundaries0x007F_FFFF/0x0080_0000, ignored upper 8 bits, 32-bit signed/unsigned extremes, and wrapping accumulation) against exact 64-bit CPU arithmetic.What is in it
crates/xcl/src/gpu/recomp/tests.rs: addsgpu_mul_hi_and_24bit_integer_ops(test-only; no runtime code changed).Tested
616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --lib gpu_mul_hi_and_24bit_integer_ops -- --nocapture: 1 passed, 0 failed, 0 ignored (1.51s)cargo build --workspace && cargo test --workspace -- --test-threads=1: 702 passed, 0 failed, 41 ignoredSKIPPEDGPU tests (expected on wave32-only NVIDIA hardware):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64--test-threads=4, pre-existingplaced_title_textures_share_vram_and_preserve_pixelshit a parallel race onf4ce27c(passes alone in1.31sand passes under--test-threads=1).Not tested
AI use