On Thu, 2006-10-05 at 05:00 +0000, seongbae dot park at gmail dot com wrote: > With 4.1.0 i686-unknown-linux-gnu target: > > # gcc -O2 m.c -S
try -O2 -msse2, you get:
_Z8todoubledd:
subl $12, %esp
fldl 24(%esp)
faddl 16(%esp)
fstpl (%esp)
movsd (%esp), %xmm0
addl $12, %esp
cvttsd2si %xmm0, %eax
ret
Though I think the movsd should not be there but that is a different
issue.
-- Pinski
