http://bugs.winehq.org/show_bug.cgi?id=21550
--- Comment #2 from Ruslan b7.10110111@gmail.com 2010-01-31 01:39:23 --- Created an attachment (id=25976) --> (http://bugs.winehq.org/attachment.cgi?id=25976) Tiny program with inline sse2 asm instruction
To see the problem, compile this file with "-g" option with gcc and winegcc, and check in gdb: gdb sse2
break sse2 run disassemble
and in winedbg: winedbg sse2.exe.so
break sse2 c disassemble
In gdb, i get this disassembly: (gdb) disassemble Dump of assembler code for function sse2: 0x08048324 <sse2+0>: push %ebp 0x08048325 <sse2+1>: mov %esp,%ebp 0x08048327 <sse2+3>: movapd %xmm0,%xmm0 0x0804832b <sse2+7>: pop %ebp 0x0804832c <sse2+8>: ret End of assembler dump.
while in winedbg this: Wine-dbg>disassemble 0x7eb0a5e0 sse2 [/home/ruslan/sse2.c:2] in sse2: pushl %ebp 0x7eb0a5e1 sse2+0x1 [/home/ruslan/sse2.c:2] in sse2: movl %esp,%ebp 0x7eb0a5e3 sse2+0x3 [/home/ruslan/sse2.c:3] in sse2: 0x7eb0a5e6 sse2+0x6 [/home/ruslan/sse2.c:3] in sse2: rcrb $0x8d,0xffffffc3(%ebp) 0x7eb0a5ea main+0x1 [/home/ruslan/sse2.c:6] in sse2: decl %esp 0x7eb0a5eb main+0x2 [/home/ruslan/sse2.c:6] in sse2: andb $0x4,%al 0x7eb0a5ed main+0x4 [/home/ruslan/sse2.c:6] in sse2: andl $-16,%esp 0x7eb0a5f0 main+0x7 [/home/ruslan/sse2.c:6] in sse2: pushl 0xfffffffc(%ecx) 0x7eb0a5f3 main+0xa [/home/ruslan/sse2.c:6] in sse2: pushl %ebp 0x7eb0a5f4 main+0xb [/home/ruslan/sse2.c:6] in sse2: movl %esp,%ebp
i.e. winedbg doesn't interpret movapd instruction here (*0x7eb0a5e3).