Re: [Qemu-devel] Re: [BUG] QEMU x86_64 SSE bug in modf() + MMX bug

2007-01-16 Thread Aurelien Jarno
Ludovic Drolez a écrit : > I've also found the buggy SSE instruction by tracing modf() with gdb. > It's similar to the MMX bug found below: only the 32 bits part of the > register > is stored instead of the whole 64 bits. > > The bug is in the movd instruction in 64 bits emulation. > Under gdb,

[Qemu-devel] Re: [BUG] QEMU x86_64 SSE bug in modf() + MMX bug

2007-01-16 Thread Ludovic Drolez
I've also found the buggy SSE instruction by tracing modf() with gdb. It's similar to the MMX bug found below: only the 32 bits part of the register is stored instead of the whole 64 bits. The bug is in the movd instruction in 64 bits emulation. Under gdb, just before the movd I had %rsi=0x3FF0

[Qemu-devel] Re: [BUG] QEMU x86_64 SSE bug in modf() + MMX bug

2007-01-16 Thread Ludovic Drolez
Julian Seward wrote: Would someone be able to track down this SSE QEMU bug seen only in SLES's modf() function ? The Valgrind sources contain test programs, including expected outputs, for all SSE/SSE2/SSE3 instructions on amd64 (see none/tests/amd64/insn-sse and insn-sse2). Running those on

[Qemu-devel] Re: [BUG] QEMU x86_64 SSE bug in modf()

2007-01-15 Thread Ludovic Drolez
Carlo Marcelo Arenas Belon wrote: On Mon, Jan 15, 2007 at 11:18:01AM +0100, Ludovic Drolez wrote: Float to string conversion uses modf() but this function fails under QEMU and SLES 64, as you can see in this small test program below: pressume you mean running SLES 10 64bit as a guest under Q