This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18668] use prescott's fisttp
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2005 19:03:03 -0000
- Subject: [Bug target/18668] use prescott's fisttp
- References: <20041125010332.18668.commie1@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-23 19:03 -------
On AMD64 I get the following:
oof:
cvttsd2siq %xmm0, %rax
ret
But -O2 -march=prescott
oof:
subl $20, %esp
fnstcw 14(%esp)
movzwl 14(%esp), %eax
movb $12, %ah
movw %ax, 12(%esp)
fldl 24(%esp)
fldcw 12(%esp)
fistpll (%esp)
fldcw 14(%esp)
movl (%esp), %eax
addl $20, %esp
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18668