https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
Marc Glisse changed:
What|Removed |Added
CC||glisse at gcc dot gnu.org
--- Com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
--- Comment #5 from vincenzo Innocente
2013-01-08 15:29:18 UTC ---
we just got "hit" by this great type of code (copysign is unknown to
scientists)
most probably gcc could optimize it for -Ofast to return copysignf(1.f,x); (x/x
is optim
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
--- Comment #4 from Dominique d'Humieres 2012-12-20
16:07:11 UTC ---
> is there any reason why rsqrtss and rcpss are not used for scalar code while
> rsqrtps and rcpps are used for loops?
Yep! I don't have the patience to dig the bugzill
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
--- Comment #3 from Richard Biener 2012-12-20
15:58:55 UTC ---
(In reply to comment #2)
> Thanks.
> not safe meaning producing incorrect results?
Yes.
> Is it documented?
See the documentation for -mrecip:
...
Note that whil
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
--- Comment #2 from vincenzo Innocente
2012-12-20 15:55:03 UTC ---
Thanks.
not safe meaning producing incorrect results?
Is it documented?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55760
--- Comment #1 from Richard Biener 2012-12-20
15:52:31 UTC ---
Use -mrecip. It's otherwise not safe for SPEC CPU 2006 which is why it is not
enabled by default for -ffast-math.