[committed] RISC-V: Fix rounding save/restore bug.
Commit Message
* sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
Fix rounding save-restore bug.
Fixes about a hundred off-by-ULP failures in the math testsuite.
Comments
On Aug 03 2018, DJ Delorie <dj@redhat.com> wrote:
> * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
> Fix rounding save-restore bug.
Move libc_fesetround_riscv after libc_feholdexcept_riscv.
Andreas.
@@ -72,8 +72,8 @@ libc_fesetround_riscv (int round)
static __always_inline void
libc_feholdexcept_setround_riscv (fenv_t *envp, int round)
{
- libc_fesetround_riscv (round);
libc_feholdexcept_riscv (envp);
+ libc_fesetround_riscv (round);
}
#define libc_feholdexcept_setround libc_feholdexcept_setround_riscv