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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Created attachment 52864 [details]
> gcc12-pr105367-2.patch
> 
> Variant patch (smaller, just i386 backend).  Advantage of the first one is
> that
> we can use that elsewhere later on.

This one is certainly obvious.  I'm less sure about mapping back modes to
_Float and then the corresponding library functions - can we not get into the
situation choosing 'double' for SFmode (on targets where double == float) but
the target
only having sinf() but not sin()?  I guess we have to be more clever wrt
libm.libc_has_function () and choosing the function when we have multiple
choices?

Reply via email to