diff options
| author | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 16:04:17 +0200 |
|---|---|---|
| committer | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 16:04:17 +0200 |
| commit | 80328dca772680c61650d7c3aa265eac7c6a3a92 (patch) | |
| tree | 1fa09f6b5ce5abf83cfdf954c0890b6e967c733b /runtime/opus_decoder/src | |
| parent | 13cb507629d53f5a80a938cb0c1731008ba2eff3 (diff) | |
tests: the three frexp_f64 oracle files check the translator, and pin where their oracle models IEEE=1 (TEST-FREXP-ORACLES-TRANSLATE)
test_valu_frexp_f64.py, test_valu_frexp_mant_f64.py and test_valu_frexp_exp_i32_f64.py were DEBT private oracles that
never ran the translator. Each gets a TranslatorMatchesOracle class (tests/semantic/f64_translate.py, run in
tests/spirv_interp.py) that checks the translated v_frexp_mant_f64 / v_frexp_exp_i32_f64 against the file's own
oracle on normals, subnormals, zeros, infinities and quiet NaNs, both signs, abs/neg and clamp.
On two points the oracles model IEEE=1 / denorm_mode_16_64=0, not the game's MODE: they quiet a signalling NaN and
scale the mantissa by mul:2 / mul:4 / div:2. The v_frexp_mant_f64 row of docs/design.md records that gfx1036 under
IEEE 0 and denorm_mode_16_64 3 passes a signalling NaN through and ignores those modifiers, and so does the translator;
the classes pin those two measured behaviours instead of the oracle, and each file's docstring says so. The oracles'
own tests are unchanged. The three DEBT entries are dropped.
semantic_mutants --op v_frexp_mant_f64 (the shared mant/exp branch): 92 of 134 caught with test_valu_frexp_f64.py,
77 with test_valu_frexp_mant_f64.py, 42 with test_valu_frexp_exp_i32_f64.py (exponent only); none of the three
reached the translator before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/src')
0 files changed, 0 insertions, 0 deletions