------- Additional Comments From hjl at lucon dot org  2005-08-12 21:51 -------
For some reason, ldmxcsr doesn't work on your machine. The assembly code looks
correct to me. I don't have any problems on IA32. I can only assume that you
have a hardware or OS related issue. Can you verify if ldmxcsr works on your
machine?

[EMAIL PROTECTED] tmp]$ cat x.c
#define MXCSR_DAZ (1 << 6)      /* Enable denormals are zero mode */
#define MXCSR_FTZ (1 << 15)     /* Enable flush to zero mode */

int
main (void)
{
    {
      unsigned int mxcsr = __builtin_ia32_stmxcsr ();
      mxcsr |= MXCSR_DAZ | MXCSR_FTZ;
      __builtin_ia32_ldmxcsr (mxcsr);
    }
  return 0;
}
[EMAIL PROTECTED] tmp]$ gcc x.c
[EMAIL PROTECTED] tmp]$ ./a.out

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23360

Reply via email to