upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authordcastell1 <dcastell1@users.noreply.github.com>2026-11-21 23:57:59 +0100
committerdcastell1 <dcastell1@users.noreply.github.com>2026-11-21 23:57:59 +0100
commit10d6d4b876d6548b53b364cdf6f05fda36b74929 (patch)
tree0928d4f14f60de8eb7d4a35a65a50532eb40eb1a /runtime/src/main.cpp
parent8bd0087d2d0e45fc18fa78fb40b70ecfc6648854 (diff)
test(fuzz): differential coverage for the integer and bit VALU family
FUZZ-1: model the integer/bit VALU block in tools/cpu_ref.py and add those ops to the shader_diff program table: v_add_nc_u32, v_sub_nc_u32, v_subrev_nc_u32, v_mul_u32_u24, v_mul_i32_i24, v_mul_lo_u32, v_mul_hi_u32/i32, v_mad_u32_u24/i32_i24, v_min_u32/u32, v_max_i32/u32, v_bfe_u32/i32, v_bfi_b32, v_alignbit_b32, v_alignbyte_b32, v_perm_b32 and v_med3_i32/u32. Pinned known-answer tests cover the boundaries: bfe width cut and zero, perm selector ranges (bytes, sign bits, constants), align shift 0 and 24, signed mul_hi, 24-bit sign extension and mad wraparound. The generator keeps integer ops away from registers last written by a float op: Vulkan does not promise a NaN payload and the comparison accepts both-NaN, so reusing those bits as an integer would compare an unobservable payload. Unobservable as a float, not as an integer. Verified CPU-only: 28 cpu_ref tests, 6 shader_diff tests, 423 semantic tests, and 8000 seeded programs (8 seeds x 1000) with 0 mismatches and 0 skips. GPU confirmation on the 5090 is pending.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions