[Bug target/18668] use prescott's fisttp
steven at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 23 19:03:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list