[PATCH] S390: Do not set FE_INEXACT with feraiseexcept (FE_OWERFLOW|FE_UNDERFLOW).

Joseph Myers joseph@codesourcery.com
Mon Aug 22 10:59:00 GMT 2016


On Mon, 22 Aug 2016, Stefan Liebler wrote:

> For feraiseexcept I think if the z196-round-instruction is available with used
> toolchain then it should be used to avoid FE_INEXACT. Then it is the same
> behaviour as on intel.
> If it is not available feraiseexcept will use the add/div instructions as
> before with the FE_INEXACT flag/exception. And the additional _FPU_GETCW/SETCW
> usages are avoided.
> 
> What's your suggestion for feraiseexcept?

I don't have a suggestion; I was simply observing that extra steps for 
this case (such as the x86 code does) are not actually needed to conform 
to the standard.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list