This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15492] floating-point arguments are loaded too early to x87 stack
- From: "uros at kss-loka dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 13:06:42 -0000
- Subject: [Bug target/15492] floating-point arguments are loaded too early to x87 stack
- References: <20040517130734.15492.uros@kss-loka.si>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From uros at kss-loka dot si 2004-09-13 13:06 -------
With a patch from Jan Hubicka:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01178.html
'gcc -O2 -ffast-math -S -march=pentium4 -fomit-frame-pointer' now produces:
test1:
fldl 4(%esp)
fldl 16(%esp)
fldl 28(%esp)
fsin
fld %st(1)
fptan
fstp %st(0)
fxch %st(3)
fsqrt
fmulp %st, %st(3)
faddp %st, %st(2)
fabs
fimull 12(%esp)
faddp %st, %st(1)
fiaddl 24(%esp)
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15492