gcc/libgfortran/config
Francois-Xavier Coudert 4637a1d293 Fortran: F2018 rounding modes changes
Add the new IEEE_AWAY rounding mode. It is unsupported on all known
targets, but could be supported by glibc and AIX as part of the C2x
proposal. Testing for now is minimal.

Add the optional RADIX argument to IEEE_SET_ROUNDING_MODE and
IEEE_GET_ROUNDING_MODE. It is unused for now, because we do not
support radices other than 2.

2022-08-31  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

gcc/fortran/
	* libgfortran.h: Declare GFC_FPE_AWAY.

gcc/testsuite/
	* gfortran.dg/ieee/rounding_2.f90: New test.

libgfortran/
	* ieee/ieee_arithmetic.F90: Add RADIX argument to
	IEEE_SET_ROUNDING_MODE and IEEE_GET_ROUNDING_MODE.
	* config/fpu-387.h: Add IEEE_AWAY mode.
	* config/fpu-aarch64.h: Add IEEE_AWAY mode.
	* config/fpu-aix.h: Add IEEE_AWAY mode.
	* config/fpu-generic.h: Add IEEE_AWAY mode.
	* config/fpu-glibc.h: Add IEEE_AWAY mode.
	* config/fpu-sysv.h: Add IEEE_AWAY mode.
2022-09-19 13:03:28 +02:00
..
fpu-387.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
fpu-aarch64.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
fpu-aix.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
fpu-generic.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
fpu-glibc.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
fpu-sysv.h Fortran: F2018 rounding modes changes 2022-09-19 13:03:28 +02:00
t-aix aix: Use $(AR) without -X32_64 to build FAT libraries. 2020-09-27 12:43:29 -04:00