This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50030] sin optimized in sinf at -O2
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Aug 2011 09:16:24 +0000
- Subject: [Bug rtl-optimization/50030] sin optimized in sinf at -O2
- Auto-submitted: auto-generated
- References: <bug-50030-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50030
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-10 09:16:24 UTC ---
Because exp -> expf is not always valid but sin -> sinf is (there are no
exceptional output values for sin but there are for exp).
float sind(float x) {
return sinl(x);
}
use a long double argument / result.