[Bug target/41462] redundant instructions with long double returned value
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 25 08:05:00 GMT 2009
------- Comment #2 from ubizjak at gmail dot com 2009-09-25 08:04 -------
(In reply to comment #0)
> There are two redundant FPU instructions there. double value is already in FPU
> after fldt. No need to store it and load it back since difference between
> double and long double is only in memory representation, and in FPU registers
> they are the same.
No, they are not. These instructions implement FP truncation from long-double
to double. Try to compile your code with -ffast-math.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41462
More information about the Gcc-bugs
mailing list