Skip to content
Commit ae515ba5 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

powerpc: Fix __fesetround_inline_nocheck on POWER9+ (BZ 31682)



The e68b1151 commit changed the
__fesetround_inline_nocheck implementation to use mffscrni
(through __fe_mffscrn) instead of mtfsfi.  For generic powerpc
ceil/floor/trunc, the function is supposed to disable the
floating-point inexact exception enable bit, however mffscrni
does not change any exception enable bits.

This patch fixes by reverting the optimization for the
__fesetround_inline_nocheck.

Checked on powerpc-linux-gnu.
Reviewed-by: default avatarPaul E. Murphy <murphyp@linux.ibm.com>
parent dd5f891c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment