gcc/libgcc/config/sh
Jiaxun Yang 05c4e3ecb5 [PATCH v2] sh: libgcc: Implement fenv rouding and exceptions for soft-fp [PR118257]
Implement fenv rouding and exceptions for soft-fp, as per SuperH
arch specification.

No new tests required, as it's already covered by many torture tests
with fenv_exceptions.

	PR target/118257

libgcc/ChangeLog:

	* config/sh/sfp-machine.h (_FPU_GETCW): Implement with builtin.
	(_FPU_SETCW): Likewise.
	(FP_EX_ENABLE_SHIFT): Derive from arch spec.
	(FP_EX_CAUSE_SHIFT): Likewise.
	(FP_RND_MASK): Likewise.
	(FP_EX_INVALID): Likewise.
	(FP_EX_DIVZERO): Likewise.
	(FP_EX_ALL): Likewise.
	(FP_EX_OVERFLOW): Likewise.
	(FP_EX_UNDERFLOW): Likewise.
	(FP_EX_INEXACT): Likewise.
	(_FP_DECL_EX): Declear default FCSR value.
	(FP_RND_NEAREST): Derive from arch spec.
	(FP_RND_ZERO): Likewise.
	(FP_INIT_ROUNDMODE): Likewise.
	(FP_ROUNDMODE): Likewise.
	(FP_TRAPPING_EXCEPTIONS): Likewise.
	(FP_HANDLE_EXCEPTIONS): Implement with _FPU_SETCW.
2025-04-19 08:12:07 -06:00
..
crt.h Update copyright years. 2025-01-02 11:59:57 +01:00
crt1.S Update copyright years. 2025-01-02 11:59:57 +01:00
crti.S Update copyright years. 2025-01-02 11:59:57 +01:00
crtn.S Update copyright years. 2025-01-02 11:59:57 +01:00
lib1funcs-4-300.S Update copyright years. 2025-01-02 11:59:57 +01:00
lib1funcs-Os-4-200.S Update copyright years. 2025-01-02 11:59:57 +01:00
lib1funcs.h Update copyright years. 2025-01-02 11:59:57 +01:00
lib1funcs.S Update copyright years. 2025-01-02 11:59:57 +01:00
libgcc-excl.ver
libgcc-glibc.ver Update copyright years. 2025-01-02 11:59:57 +01:00
linux-atomic.c Update copyright years. 2025-01-02 11:59:57 +01:00
linux-unwind.h Update copyright years. 2025-01-02 11:59:57 +01:00
sfp-machine.h [PATCH v2] sh: libgcc: Implement fenv rouding and exceptions for soft-fp [PR118257] 2025-04-19 08:12:07 -06:00
t-linux
t-netbsd
t-sh Update copyright years. 2025-01-02 11:59:57 +01:00
t-superh