diff options
| author | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-23 02:24:45 -0300 |
|---|---|---|
| committer | iurysf <iury_sf@hotmail.com> | 2026-11-23 02:48:10 -0300 |
| commit | 8803b723e5030145b263819b091faa896c15849a (patch) | |
| tree | f164f964a01676aaeb58ee51487cced17f4cfaa8 /runtime/src/tls_host.cpp | |
| parent | 7671b9b06b8d147c4e2b586f93c26f9e41970b41 (diff) | |
FUZZ-55: Count the RTX 4070 constant-folded Fma zero sign as a GPU skip
The reviewer's `--oracle gpu --ops v_div_fmas_f64 --programs 300 --seed 1` run had one
mismatch: `v_div_fmas_f64 v[8:9], 16, 0xa5126aa7ea6efc1f, 0` (VCC clear), reference -0,
GPU +0. Diagnosis (RTX 4070):
- IEEE is -0: the exact result is a negative nonzero that underflows, and the C library
fma and the reference agree. Denormal operands are preserved by the GPU, so it is not
operand flush-to-zero.
- The translator emits a plain GLSL `Fma` for that path (SPIR-V checked), and adding
SignedZeroInfNanPreserve/DenormPreserve 64 does not change the GPU result.
- The same `Fma(2^-600, -2^-600, +0)` on runtime operands (a FragCoord-derived shader)
returns -0 on the GPU. Only an all-constant `Fma` loses the zero sign, which points at
the driver folding it. The fuzz shaders are all constants.
So neither the reference nor the translator is wrong. A GPU result that differs from
the reference only in the sign of such a zero (an underflowing Fma against an
opposite-signed zero addend) is now a counted skip with that reason; any other
difference still fails. ref_program reports the case through an optional notes list.
Tests pin the flag, the skip, and that a flip without the underflow, or with another
differing word, stays a mismatch (four mutations fail them). docs/shader_validation.md
records the diagnosis.
AI-assisted (OpenBot team).
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions