xtensa: add HW FPU sequences for DIV/SQRT/RECIP/RSQRT

Programming / Compilers / GCC - jcmvbkbc [138bc75d-0d04-0410-961f-82ee72b054a4] - 18 October 2016 14:06 UTC

Use new FPU instruction sequences documented in the ISA book to implement __divsf3, __divdf3, __recipsf2, __recipdf2, __rsqrtsf2, __rsqrtdf2 and __ieee754_sqrtf and __ieee754_sqrt.

2016-10-18 Ding-Kai Chen libgcc/
- config/xtensa/ieee754-df.S (__recipdf2, __rsqrtdf2, __ieee754_sqrt): New functions. (__divdf3): Add implementation with new FPU instructions under #if XCHAL_HAVE_DFP_DIV.
- config/xtensa/ieee754-sf.S (__recipsf2, __rsqrtsf2, __ieee754_sqrtf): New functions. (__divsf3): Add implementation with new FPU instructions under #if XCHAL_HAVE_FP_DIV.
- config/xtensa/t-xtensa (LIB1ASMFUNCS): Add _sqrtf, _recipsf2 _rsqrtsf2, _sqrt, _recipdf2 and _rsqrtdf2.

2b7e7fc xtensa: add HW FPU sequences for DIV/SQRT/RECIP/RSQRT
libgcc/ChangeLog | 13 +++
libgcc/config/xtensa/ieee754-df.S | 178 ++++++++++++++++++++++++++++++++++++-
libgcc/config/xtensa/ieee754-sf.S | 156 +++++++++++++++++++++++++++++++-
libgcc/config/xtensa/t-xtensa | 4 +-
4 files changed, 348 insertions(+), 3 deletions(-)

Upstream: gcc.gnu.org


  • Share