aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-01-03 17:03:48 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-01-04 17:49:17 -0200
commitb0a4eca2fcfe2a6bc3cbb3951241c4facc887670 (patch)
tree9a054c288d58f4aa2eeb8624ec3eb486fd45d6a8 /ChangeLog
parent4854ddd874d4aafb1ac21f551abda58ac4f9144d (diff)
downloadglibc-b0a4eca2fcfe2a6bc3cbb3951241c4facc887670.tar
glibc-b0a4eca2fcfe2a6bc3cbb3951241c4facc887670.tar.gz
glibc-b0a4eca2fcfe2a6bc3cbb3951241c4facc887670.tar.bz2
glibc-b0a4eca2fcfe2a6bc3cbb3951241c4facc887670.zip
alpha: Remove s_trunc{f} implementation (BZ#22666)
As discussed in libc-alpha [1], alpha trunc{f} implementation uses addt/suc and subt/suc and although the Alpha Architecture Handbook version 3 states that that ADDx SUBx OUTPUT Exceptions (B.3 Mapping to IEEE Standard) should not generate Inexact if INE bit is set, the Alpha 21264 [2] chip manual (A.8 IEEE Floating-Point Conformance) states that ADDx SUBx OUTPUT does generate inexact exception for inexact result regardless. As Joseph noted [3] to correctly fix it on alpha we need to either avoid the instruction or avoid any inexact bit from it being set on return from the function (while preserving the inexact bit that might be set on the entry to the function). The later will result mf_fpcr followed by a mt_fpcr to get and set the fpcr which will defeat the optimization itself. So the patch just remove the alpha optimized and rely on generic implementation. It fixes the math/test-*-{trunc} on alpha. [BZ #15479] [BZ #22666] * sysdeps/alpha/fpu/s_trunc.c: Remove file. * sysdeps/alpha/fpu/s_truncf.c: Likewise. [1] https://sourceware.org/ml/libc-alpha/2018-01/msg00114.html [2] https://www.star.bnl.gov/public/daq/HARDWARE/21264_data_sheet.pdf [3] https://sourceware.org/ml/libc-alpha/2018-01/msg00086.html Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 41af6507c6..485e526035 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #15479]
+ [BZ #22666]
+ * sysdeps/alpha/fpu/s_trunc.c: Remove file.
+ * sysdeps/alpha/fpu/s_truncf.c: Likewise.
+
+ [BZ #15479]
[BZ #22665]
* sysdeps/alpha/fpu/s_ceil.c: Remove file.
* sysdeps/alpha/fpu/s_ceilf.c: Likewise.