RISC-V: Hard Float Support

System Internals / glibc - Palmer Dabbelt [dabbelt.com] - 29 January 2018 18:26 EST

This patch contains hardware floating-point support for the RISC-V ISA. While we currently only support hard-float systems with both the F and D extensions, I've left the F-specific code split out into seperate folders in order to ease adding support for F-only and RV32I-based systems in the future. I gave this a quick once-over and believe I've removed all the code that implements RV32IF, RV32IFD, and RV64IF targets.

2018-01-29 Palmer Dabbelt

- sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
- sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
- sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
- sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
- sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
- sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
- sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
- sysdeps/riscv/rvd/e_sqrt.c: Likewise.
- sysdeps/riscv/rvd/s_copysign.c: Likewise.
- sysdeps/riscv/rvd/s_finite.c: Likewise.
- sysdeps/riscv/rvd/s_fma.c: Likewise.
- sysdeps/riscv/rvd/s_fmax.c: Likewise.
- sysdeps/riscv/rvd/s_fmin.c: Likewise.
- sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
- sysdeps/riscv/rvd/s_isinf.c: Likewise.
- sysdeps/riscv/rvd/s_isnan.c: Likewise.
- sysdeps/riscv/rvd/s_issignaling.c: Likewise.
- sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
- sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
- sysdeps/riscv/rvf/fegetenv.c: Likewise.
- sysdeps/riscv/rvf/fegetmode.c: Likewise.
- sysdeps/riscv/rvf/fegetround.c: Likewise.
- sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
- sysdeps/riscv/rvf/fesetenv.c: Likewise.
- sysdeps/riscv/rvf/fesetexcept.c: Likewise.
- sysdeps/riscv/rvf/fesetmode.c: Likewise.
- sysdeps/riscv/rvf/fesetround.c: Likewise.
- sysdeps/riscv/rvf/feupdateenv.c: Likewise.
- sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
- sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
- sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
- sysdeps/riscv/rvf/ftestexcept.c: Likewise.
- sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
- sysdeps/riscv/rvf/math_private.h: Likewise.
- sysdeps/riscv/rvf/s_ceilf.c: Likewise.
- sysdeps/riscv/rvf/s_copysignf.c: Likewise.
- sysdeps/riscv/rvf/s_finitef.c: Likewise.
- sysdeps/riscv/rvf/s_floorf.c: Likewise.
- sysdeps/riscv/rvf/s_fmaf.c: Likewise.
- sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
- sysdeps/riscv/rvf/s_fminf.c: Likewise.
- sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
- sysdeps/riscv/rvf/s_isinff.c: Likewise.
- sysdeps/riscv/rvf/s_isnanf.c: Likewise.
- sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
- sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
- sysdeps/riscv/rvf/s_rintf.c: Likewise.
- sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
- sysdeps/riscv/rvf/s_roundf.c: Likewise.
- sysdeps/riscv/rvf/s_truncf.c: Likewise.

b2cb5e0298 RISC-V: Hard Float Support
ChangeLog | 58 ++++++++++++
sysdeps/riscv/rv64/rvd/s_ceil.c | 52 +++++++++++
sysdeps/riscv/rv64/rvd/s_floor.c | 52 +++++++++++
sysdeps/riscv/rv64/rvd/s_llrint.c | 30 +++++++
sysdeps/riscv/rv64/rvd/s_llround.c | 30 +++++++
sysdeps/riscv/rv64/rvd/s_lrint.c | 30 +++++++
sysdeps/riscv/rv64/rvd/s_lround.c | 30 +++++++
sysdeps/riscv/rv64/rvd/s_nearbyint.c | 52 +++++++++++
sysdeps/riscv/rv64/rvd/s_rint.c | 52 +++++++++++
sysdeps/riscv/rv64/rvd/s_round.c | 52 +++++++++++
sysdeps/riscv/rv64/rvd/s_roundeven.c | 53 +++++++++++
sysdeps/riscv/rv64/rvd/s_trunc.c | 52 +++++++++++
sysdeps/riscv/rv64/rvf/s_llrintf.c | 30 +++++++
sysdeps/riscv/rv64/rvf/s_llroundf.c | 30 +++++++
sysdeps/riscv/rv64/rvf/s_lrintf.c | 31 +++++++
sysdeps/riscv/rv64/rvf/s_lroundf.c | 31 +++++++
sysdeps/riscv/rvd/e_sqrt.c | 27 ++++++
sysdeps/riscv/rvd/s_copysign.c | 28 ++++++
sysdeps/riscv/rvd/s_finite.c | 28 ++++++
sysdeps/riscv/rvd/s_fma.c | 30 +++++++
sysdeps/riscv/rvd/s_fmax.c | 28 ++++++
sysdeps/riscv/rvd/s_fmin.c | 28 ++++++
sysdeps/riscv/rvd/s_fpclassify.c | 36 ++++++++
sysdeps/riscv/rvd/s_isinf.c | 29 ++++++
sysdeps/riscv/rvd/s_isnan.c | 28 ++++++
sysdeps/riscv/rvd/s_issignaling.c | 27 ++++++
sysdeps/riscv/rvf/e_sqrtf.c | 27 ++++++
sysdeps/riscv/rvf/fclrexcpt.c | 28 ++++++
sysdeps/riscv/rvf/fegetenv.c | 32 +++++++
sysdeps/riscv/rvf/fegetmode.c | 27 ++++++
sysdeps/riscv/rvf/fegetround.c | 29 ++++++
sysdeps/riscv/rvf/feholdexcpt.c | 30 +++++++
sysdeps/riscv/rvf/fesetenv.c | 30 +++++++
sysdeps/riscv/rvf/fesetexcept.c | 26 ++++++
sysdeps/riscv/rvf/fesetmode.c | 31 +++++++
sysdeps/riscv/rvf/fesetround.c | 39 ++++++++
sysdeps/riscv/rvf/feupdateenv.c | 30 +++++++
sysdeps/riscv/rvf/fgetexcptflg.c | 30 +++++++
sysdeps/riscv/rvf/fraiseexcpt.c | 30 +++++++
sysdeps/riscv/rvf/fsetexcptflg.c | 30 +++++++
sysdeps/riscv/rvf/ftestexcept.c | 27 ++++++
sysdeps/riscv/rvf/get-rounding-mode.h | 32 +++++++
sysdeps/riscv/rvf/math_private.h | 161 ++++++++++++++++++++++++++++++++++
sysdeps/riscv/rvf/s_ceilf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_copysignf.c | 28 ++++++
sysdeps/riscv/rvf/s_finitef.c | 28 ++++++
sysdeps/riscv/rvf/s_floorf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_fmaf.c | 30 +++++++
sysdeps/riscv/rvf/s_fmaxf.c | 28 ++++++
sysdeps/riscv/rvf/s_fminf.c | 28 ++++++
sysdeps/riscv/rvf/s_fpclassifyf.c | 36 ++++++++
sysdeps/riscv/rvf/s_isinff.c | 29 ++++++
sysdeps/riscv/rvf/s_isnanf.c | 28 ++++++
sysdeps/riscv/rvf/s_issignalingf.c | 27 ++++++
sysdeps/riscv/rvf/s_nearbyintf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_rintf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_roundevenf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_roundf.c | 52 +++++++++++
sysdeps/riscv/rvf/s_truncf.c | 52 +++++++++++
59 files changed, 2219 insertions(+)

Upstream: sourceware.org


  • Share