upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 11:04:42 +0000
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 11:04:42 +0000
commitc57774bf4b483c1a45179ddbdbca1c79874130ff (patch)
treea5e4b966885ac328a3bebebd1d55b946d152af6b /runtime/src/thread_stacks.cpp
parent64ed15f2559497d61d6d0454baec83bc99806de1 (diff)
tools/mode_diff.py: differential fuzzer for MODE.FP_ROUND writes
The corpus switches f16/f64 rounding at run time (9,417 MODE writes), but no fuzzer writes MODE, so the f16 fuzzers only run in nearest-even mode. mode_diff.py mixes setreg 0/3 and s_round_mode 0x0/0xc with 19 mode-aware f16 ops and checks the exported words against an exact Fraction reference. It also checks that the transcendentals, exact ops and f32 arithmetic give the same words with and without their MODE writes. Stacked on #5310: against main it reports v_ldexp_f16 overflowing to inf under toward zero. Seeds 1-5: 2,532/2,532 judged programs match. Eight planted translator bugs are each caught. docs/design.md: v_fract_f16 is not exact for small negatives (fract(-(2^-10 + 2^-20)) needs 20 bits); the translator already rounds it by the mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions