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

Re: PATCH: target/23360: -ffast-math startup broken on i686 (maybeAthlon-xp)


H. J. Lu wrote:
+      if (fxsave.mxcsr_mask & MXCSR_DAZ)
+	{
+	  unsigned int mxcsr = __builtin_ia32_stmxcsr ();
+	  mxcsr |= MXCSR_DAZ | MXCSR_FTZ;
+	  __builtin_ia32_ldmxcsr (mxcsr);
+	}

You can still use FTZ even if DAZ does not exist. And I would expect that FTZ gives far more benefit than DAZ, so it doesn't make sense to make this setting conditional on the existence of the DAZ bit.


Otherwise this looks OK to me.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com


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