diff options
author | Andrew Waterman <andrew@sifive.com> | 2018-02-22 14:31:54 -0500 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2018-02-22 14:31:54 -0500 |
commit | fdcc625376505eacb1125a6aeba57501407a30ec (patch) | |
tree | 1989bd343846d9a14b1921ca9bcbe6930892ba6a /ChangeLog | |
parent | 8090720a87e42fddc31396f6126112d4b8014d8e (diff) | |
download | glibc-fdcc625376505eacb1125a6aeba57501407a30ec.tar.gz glibc-fdcc625376505eacb1125a6aeba57501407a30ec.tar.xz glibc-fdcc625376505eacb1125a6aeba57501407a30ec.zip |
RISC-V: fmax/fmin: Handle signalling NaNs correctly.
RISC-V's fmax(sNAN,4) returns 4 but glibc expects it to return qNAN. * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly. * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise. * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise. * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index bb787d65bb..a9a8a4f5e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-02-22 Andrew Waterman <andrew@sifive.com> + + * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly. + * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise. + * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise. + * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise. + 2018-02-22 DJ Delorie <dj@delorie.com> * sysdeps/riscv/tls-macros.h: Do not initialize $gp. |