[Bug target/59385] [4.9 regression] gcc 4.9 fails to use fma with __attribute__((target("fma")))
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 31 11:14:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59385
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Julian Taylor from comment #6)
> shouldn't -ffast-math enable -ffp-contract=fast?
it doesn't (it probably should)
> also gcc 4.9 still documents -ffp-contract=fast as being the default while
> it is apparently not anymore.
it's the default unless you override it with -std=c99 (always use -std=gnu99).
Are you sure this worked correctly in 4.8.0? I see both functions using
vfmadd132sd there - that's cleary wrong as well.
Works for me correctly, with -std=gnu99.
Thus, it works as intended in 4.9 and the bug in 4.8 was fixed.
More information about the Gcc-bugs
mailing list