This is the mail archive of the gcc-bugs@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]

[Bug target/23360] [4.1 regression] -ffast-math startup broken on i686 (maybe Athlon-xp)


------- 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?

[hjl@gnu-13 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;
}
[hjl@gnu-13 tmp]$ gcc x.c
[hjl@gnu-13 tmp]$ ./a.out

-- 


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


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