diff options
| author | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-22 23:55:19 -0300 |
|---|---|---|
| committer | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-22 23:55:19 -0300 |
| commit | 7bd5f01dd166dfcf80f4f96bb678cccc5918a7bc (patch) | |
| tree | c7e5c084d5948036e64649f848f9c690930c60b2 /runtime | |
| parent | 50b889e3c19360e96eaa1c14a0e216f4fb8c0cfa (diff) | |
FUZZ-55: Route --oracle hw through hw_oracle, fix zero-sum sign, pin the reference
Review follow-up on #4536 (CHANGES_REQUESTED by Flyander; coverage note by kapitche).
- --oracle hw no longer always exits 77. It opens tools/hw_oracle (same pattern as
tools/fmisc_diff.py), runs each program as a one-lane wave32 raw kernel in the game's
inferred MODE, honours --hw-arch, and compares the four words with the reference. 77 is
returned only when the oracle is unavailable. v_rcp/v_rsq/v_sqrt_f64 are counted skips
there (native results are approximations, PROC-216); the translator-only known-divergence
exclusions do not apply to hardware.
- add_bits: an exact zero sum now follows IEEE 754-2019 6.3. +0 + +0 stays +0 in every
mode; only opposite-signed zeros and x + (-x) give -0 when rounding toward negative.
Before, every exact zero was -0 in that mode.
- tests: direct table tests for compare (16 conditions x 28 operand pairs), class (10
classes plus boundaries), div_fixup, frexp and add_bits (NaN, inf, zero signs in all four
modes), plus fake-oracle tests for hw routing, --hw-arch, exit 77, skips and shrinking.
Mutating lt to <=, add_bits NaN to 0, or dropping the signed-zero rule now fails them.
- docs/shader_validation.md describes the hw contract. No AMD hardware run has been done.
KNOWN_DIVERGENCES keeps div-fixup-nan-s0 (it waits for TEST-983 to reach main).
AI-assisted (OpenBot team).
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime')
0 files changed, 0 insertions, 0 deletions