https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93871
--- Comment #20 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Note that for tiny arguments, tan should raise the underflow exception, whereas cot should not raise underflow, but maybe you're not concerned about exceptions raised.