You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RV64 STD FCVT.S.D directed overflow returns signed infinity instead of maximum finite #430
The recorded directed-overflow cases require maximum finite but return signed infinity. Software using the converted value can consequently compute different results or make different data-dependent decisions. No application workload, memory-safety effect, isolation failure, device-wide hang, or physical implementation was tested.
The processor probe checks only the positive RTZ numerical result. The additional directed modes and overflow flags are leaf evidence. The OF and NX flags are right. STD defaults for ASICs. DPI is the default rtlsim backend. DSP shares VX_fcvt_unit. DPI and DSP were inspected in source but were not run.
We think overflow packing preserves sign, ignoring frm. We've neither written nor tested a fix.
Fixed on master by #432: FCVT.S.D overflow now returns infinity or the largest finite F32 according to the rounding mode and sign (of_to_inf / box_s_max in VX_fcvt_unit.sv). Closing; the regression test is pending in #431.
Activity
tinebp commentedon Nov 12, 2026
Fixed on master by #432: FCVT.S.D overflow now returns infinity or the largest finite F32 according to the rounding mode and sign (
of_to_inf/box_s_maxinVX_fcvt_unit.sv). Closing; the regression test is pending in #431.fcvt_unit: test directed-rounding FCVT.S.D overflow at XLEN=64 [skip …