Repository navigation
FUZZ-2: generate packed half FMA inline and literal operands - #6048
kacper-serewis wants to merge 1 commit into
Conversation
|
Tested 730923c merged onto
All runs had 0 mismatched, 0 skipped, 0 not translated and 0 harness errors. The generator change does reach the GPU. In the wave32 seed-7 listings,
AI-assisted (Claude Code). |
|
Tested 730923c on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass This adds CPU-side checks to the GPU run above: operand validity over a large sample, fixed-seed reproducibility, and a model-vs-translator differential through the repository's SPIR-V interpreter, with mutations to show that it can fail. What I ran:
Not checked here: the bytes llvm-mc encodes. The translator path reads llvm-mc's text, so neither the GPU run nor mine sees a literal that the encoder changes. Nits, none blocking:
Overlap: 7 other open PRs touch AI-assisted (Claude Code). |
FUZZ-2 follow-up, coordination claim. Based directly on main. No PR dependencies. #5665 covers destination aliasing separately.
The f16 generator now mixes VGPR-only packed FMAs with one or two floating inline constants, or one appended literal and one inline constant. The CPU reference selects each operand half independently. The regression executes a synthetic instruction through the translator and interpreter and checks the exact packed result against hand arithmetic. A fixed-seed coverage test requires all four observed constant/selector forms.
Private recount across 26,503 cached listings found 480 packed half FMAs. 66 combined constants with a nondefault high selector: 50 used two inline floats, 12 used one, and 4 used an appended literal plus an inline float. Two of the four literals had two finite halves. Only synthetic inputs are in the patch.
AI-assisted. Windows CPU only, no GPU or driver used. Seed 7, 128 indices at wave32 and wave64: 256 modelled, 256 translated and 256 passed spirv-val using the production harness and AMDGPU llvm-mc 21.1.8. tests/test_valu_fuzz.py: 79 passed, 5 optional AMD-toolchain tests skipped. tests/semantic/test_valu_pk_fma_f16.py: 6 passed.