https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93871
--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> --- Given there's no cotan or ccotan in libm indeed the solution looks like somehow exploiting sincos. Not sure how exactly that can be done.