newlib-cygwin/newlib/libc/machine/riscv
Maciej W. Rozycki 963d6c79ea RISC-V: Fix floating-point environment support for soft float
We don't have floating-point exception or non-default rounding mode
support for the RISC-V soft-float environment, `feraiseexcept' and
`fesetround' do nothing unless the `__riscv_flen' macro has been set.
Therefore following ISO C language requirements[1] only define macros
for soft float that correspond to actually supported floating-point
environment features, removing failures from GCC testing such as:

FAIL: gcc.dg/torture/fp-int-convert-timode-3.c   -O0  execution test
FAIL: gcc.dg/torture/fp-int-convert-timode-4.c   -O0  execution test

References:

[1] "Programming languages -- C", ISO/IEC 9899:2023, working draft --
    September 3, 2022, Section 7.6 "Floating-point environment <fenv.h>"

Fixes: 7040b2de08 ("Add RISC-V port for libm")
Signed-off-by: Maciej W. Rozycki <macro@embecosm.com>
2023-01-27 14:25:44 +01:00
..
sys RISC-V: Fix floating-point environment support for soft float 2023-01-27 14:25:44 +01:00
Makefile.inc newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
ffs.c Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00
ieeefp.c riscv: Map between ieeefp.h exception bits and RISC-V FCSR bits 2020-01-21 10:28:35 +01:00
memcpy-asm.S RISC-V: Add size optimized memcpy, memmove, memset and strcmp. 2019-05-22 17:36:57 -07:00
memcpy.c riscv: fix integer wraparound in memcpy 2020-07-27 10:14:34 +02:00
memmove-stub.c RISC-V: Add size optimized memcpy, memmove, memset and strcmp. 2019-05-22 17:36:57 -07:00
memmove.S RISC-V: Add size optimized memcpy, memmove, memset and strcmp. 2019-05-22 17:36:57 -07:00
memset.S RISC-V: Add size optimized memcpy, memmove, memset and strcmp. 2019-05-22 17:36:57 -07:00
setjmp.S Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00
strcmp.S RISC-V: Fix optimized strcmp on big endian 2021-02-25 12:14:18 +01:00
strcpy.c Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00
strlen.c Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00