glibc/sysdeps/alpha/fpu
Adhemerval Zanella b0a4eca2fc 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>
2018-01-04 17:49:17 -02:00
..
bits Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cargf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cfloat-compat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cimagf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
conjf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
crealf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrtf.c
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fenv_libc.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libm-test-ulps Update Alpha libm-test-ulps 2017-12-06 18:55:09 -02:00
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
math_private.h Add earlyclobber to sqrtt/sqrtf insns. 2017-04-26 04:21:59 -07:00
s_cacosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cacoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cexpf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clog10f.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clogf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysign.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysignf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cpowf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cprojf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csqrtf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabs.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fma.c Use libm_alias_double for dbl-64 fma. 2017-10-04 20:32:48 +00:00
s_isnan.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnanf.c
s_llrint.c
s_llrintf.c
s_llround.c
s_llroundf.c
s_lrint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lroundf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions