On Thu, Nov 7, 2024 at 3:52 PM Jakub Jelinek <ja...@redhat.com> wrote: > > On Thu, Nov 07, 2024 at 01:57:21PM +0800, Hongtao Liu wrote: > > > Does it turn the sNaNs into infinities or qNaNs silently? > > Yes. > > Into infinities? Into qNaNs(Sorry, I didn't see it clearly.) > > > > Given the rounding, flag_rounding_math should avoid the hw instructions, > > The default rounding mode for flag_rounding_math is rounding to > > nearest, so I assume !flag_rounding_math is not needed for the > > condition. > > flag_rounding_math is about it being ok to change the rounding mode at > runtime. So, with flag_rounding_mode you can't rely on the rounding mode > being to nearest, with !flag_rounding_mode we do rely on it. I see. > So !flag_rounding_math is needed. It is not on by default, so it isn't > a big deal... > > Jakub >
-- BR, Hongtao