[Bug tree-optimization/105414] constant folding for fmin/max(snan, snan) is wrong

guihaoc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 28 08:10:55 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105414

--- Comment #6 from HaoChen Gui <guihaoc at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> I think you want
> 
>  (if (!tree_expr_maybe_signaling_nan_p (@0))
> ...
> 
> instead.

Thanks so much for comments. Do we have a way to return a NaN directly in
match.pd when both arguments are sNaN?


More information about the Gcc-bugs mailing list