On Thu, Oct 15, 2026 at 2:45 AM Richard Henderson
<[email protected]> wrote:
> You can't talk about what the kernel does without testing
> CONFIG_USER_ONLY in there somewhere.
Right. In v2 the float_flag_input_denormal_used check is under
CONFIG_USER_ONLY. In system mode gen_ieee_input traps before the helper
runs, and with DNZ set the operand is flushed rather than used, so the
check wouldn't do anything there anyway.
> swc doesn't need to be computed early -- ideally neither would normal,
> but that would require two helpers.
Fixed. The denormal check is only made once underflow is known to be
set. I left normal as an argument, since the alternative is the second
helper.
> Is it possible to merge this with soft_to_fpcr_exc proper? I see that
> the comparison results wouldn't have a result value to reference for
> normality, but they never raise underflow either, so you could just pass 0.
Done. soft_to_fpcr_exc now takes the normal flag. The S and T format
add, sub, mul, div and cvtts helpers pass float{32,64}_is_normal(fr),
and everything else passes false.
Thanks for the review.
Matt