upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 13:58:20 +0000
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 14:07:48 +0000
commit38b75c9fbfe7c7b40d0b75277202a601de515e83 (patch)
tree20933c939d20c51ff274bcdba78fd974638df1c0 /runtime/src/xma2_decoder.cpp
parent5c81e056806ab498c37718a52a720afeee94338b (diff)
f64_diff: generate v_ldexp_f64, v_cvt_f64_i32 and v_cvt_f64_u32
main translates all three (a59367f7, 524d1e92), but no fuzzer generated them and --list-ops still called v_ldexp_f64 untranslated. 47 -> 50 forms. - Reference: v_ldexp_f64 is the exact S0 * 2^S1 rounded once by MODE.FP_ROUND[3:2] (subnormals kept, zeros/infinities/NaNs pass, toward zero never rounds up and overflows to DBL_MAX); the integer conversions are exact. Their clamp is judged: ldexp clamps with integer ops and an integer is never NaN or -0. - Generation: S1 aimed at the subnormal and overflow edges, S0 refilled with subnormals, boundaries and all-ones low words (rounding carry), and s_round_mode 0/12 before 30% of the ldexp cases. - Known divergence ldexp-f64-mode: main ignores a toward-zero MODE write in v_ldexp_f64 (#6218 fixes it); such results are counted skips, and the --known probe (DBL_MAX * 2) mismatches until #6218 lands. - tests/spirv_interp.py: OpConvertUToF/OpConvertSToF to %double are exact (they rounded through binary32: v_cvt_f64_u32 0xffffffff read 2^32), and SClamp, UClamp, FindUMsb, OpSLessThan and OpSGreaterThan exist, which the integer-only ldexp lowering needs once a module has a %double op. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions