------- Comment #2 from cedric dot augonnet at ens-lyon dot org 2006-07-10 22:56 ------- (In reply to comment #1) > You forgot to flush the MMX/x87 registers since fp and MMX registers are the > same set and the hardware does not support them at the same time. >
Ok, i see that adding __builtin_ia32_emms() solves the problem indeed, thanks! Still, this does not seem to be documented yet, wouldn't it be a good thing to change this ? For instance it might have been notified in http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/X86-Built_002din-Functions.html#X86-Built_002din-Functions ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28331