This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/15228] useless copies of floating point operands
- From: "sylvain dot pion at sophia dot inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2004 15:51:08 -0000
- Subject: [Bug inline-asm/15228] useless copies of floating point operands
- References: <20040430154152.15228.sylvain.pion@sophia.inria.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sylvain dot pion at sophia dot inria dot fr 2004-04-30 15:51 -------
I still have gcc 2.95 around, so I have tested with it as well.
It produces the better code that I expected :
force2memdouble:
#APP
#NO_APP
fldl 4(%esp)
ret
So, if the code is correct, then this problem is a regression on code quality
compared to 2.95.
I want to mention that this asm() is critical when implementing interval
arithmetic. Also, GMP uses that kind of asm() in mpz_get_d_2exp.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15228