This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -mfpmath=sse -mno-80387 troubles


Found the culprit.
Somewhere my rdtsc timer asks for a int64_t -> float64_t conversion (i
thought it would be straighter than uint64_t -> float64_t if a bit
wrong).

Without -mno-80387 there's a "fildll (%esp); fstpl  0x18(%esp)".
With -mno-80387 there's some pushing and then a call to floatdidf
which returns the result on the top of the fpu stack.

I'm sure that's not the only thing that goes wrong, but frankly i
wasn't expecting a cast to go through libc.
Live & learn i guess :)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]