Commit Graph

5 Commits

Author SHA1 Message Date
a284bad1e9 pk16_diff, vint_diff, sdwa_diff, wint_diff: --oracle hw,vk runs the translated programs on a Vulkan GPU (#6306)
Squash-merged after diff review of PR #6306 - pk16_diff, vint_diff, sdwa_diff, wint_diff: --oracle hw,vk runs the translated programs on a Vulkan GPU
2026-11-23 08:25:41 -06:00
70b1f7ccbe Merge pull request #4629 from TreXito
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:37 -05:00
ead3511834 fmisc_diff: v_fract_f32 passes a NaN through, +-inf gives 0xffc00000 (gfx1036)
The reference returned 0x7fc00000 for any NaN or infinity. docs/design.md ("Float min/max/med3 with NaN, v_fract")
records the gfx1036 measurement: a NaN operand comes back unchanged, a signalling one too, and +-inf gives exactly
0xffc00000. The translator follows that, so a v_cmp_class_f32 of a fract'd signalling NaN reported a false
mismatch: fmisc_diff --programs 8000 --seed 775101, program 177 (v_fract_f32 of 0x7f800001, then a class mask with
bit 0 and not bit 1: reference 0, translated 1.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 03:11:24 +00:00
da96d1fac9 test: a run where every program was skipped is not a success (cf_diff, mem_diff, shader_diff, fmisc_diff) 2026-11-23 02:27:39 +01:00
94955e12c3 tools: fmisc_diff.py, a differential fuzzer for f32 misc ops and float compares
A separate exact-rational ISA model for v_fract_f32, v_frexp_mant/exp_f32, v_ldexp_f32, v_cvt_u32/i32_f32, v_cvt_off_f32_i4, v_fmamk_f32, the 16 v_cmp_*_f32 conditions and v_cmp_class_f32, with neg/abs, omod and clamp and every source kind within the constant-bus rules, compared one lane at a time with rdna2spirv run in tests/semantic/spirv_mini_interp.py, optionally with the hardware through tools/hw_oracle (run under IEEE off, f32 denormals flushed). Denormals, NaN payloads read as integers, clamp of a NaN and omod giving a zero are counted skips. v_cmp_class_f32 with neg/abs on a signalling NaN only with --known.

AI-assisted.
2026-11-22 18:19:02 +01:00