This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v4] MIPS: IEEE 754-2008 features support
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 29 Jul 2013 15:38:12 +0100
- Subject: Re: [PATCH v4] MIPS: IEEE 754-2008 features support
- References: <alpine dot DEB dot 1 dot 10 dot 1307151634220 dot 20590 at tp dot orcam dot me dot uk> <87mwpmxp5k dot fsf at talisman dot default> <alpine dot DEB dot 1 dot 10 dot 1307162053370 dot 20590 at tp dot orcam dot me dot uk> <87wqopvzfx dot fsf at talisman dot default> <alpine dot DEB dot 1 dot 10 dot 1307181823260 dot 20590 at tp dot orcam dot me dot uk> <87d2qfvv7h dot fsf at talisman dot default> <alpine dot DEB dot 1 dot 10 dot 1307262213460 dot 32382 at tp dot orcam dot me dot uk> <87ob9oauo1 dot fsf at talisman dot default>
On Sat, 27 Jul 2013, Richard Sandiford wrote:
> > gcc/
> > * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
> > (UCLIBC_DYNAMIC_LINKER): New macro.
> > * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
> > `-mnan=2008'.
> > (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
> > (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
> > `-mnan=2008'.
> > (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
> > (UCLIBC_DYNAMIC_LINKERN32): Likewise.
> > * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
> > for SF and DF modes. Use ieee_quad_format for TF mode.
> > * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
> > * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
> > (mips_option_override): Handle `-mnan=legacy'.
> > * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
> > `-mabs=2008' and `-mnan=2008'.
> > (OPTION_DEFAULT_SPECS): Add "nan" default.
> > (ASM_SPEC): Handle `-mnan='.
> > [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
> > * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
> > comment accordingly.
> > (neg<mode>2): Likewise.
> > * config/mips/mips.opt (mabs, mnan): New options.
> > * doc/install.texi (Configuration): Document `--with-nan=' option.
> > * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
> > `-mnan=' options.
> > (MIPS Options): Document them.
> > * config.gcc <mips*-*-*>: Handle `--with-nan='.
> > * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
> > * configure: Regenerate.
> > * config.in: Regenerate.
> >
> > gcc/testsuite/
> > * gcc.target/mips/fabs-2008.c: New test case.
> > * gcc.target/mips/fabs-legacy.c: New test case.
> > * gcc.target/mips/fabsf-2008.c: New test case.
> > * gcc.target/mips/fabsf-legacy.c: New test case.
> > * gcc.target/mips/fneg-2008.c: New test case.
> > * gcc.target/mips/fneg-legacy.c: New test case.
> > * gcc.target/mips/fneg-2008.c: New test case.
> > * gcc.target/mips/fneg-legacy.c: New test case.
> > * gcc.target/mips/nan-2008.c: New test case.
> > * gcc.target/mips/nan-legacy.c: New test case.
> > * gcc.target/mips/nanf-2008.c: New test case.
> > * gcc.target/mips/nanf-legacy.c: New test case.
> > * gcc.target/mips/nans-2008.c: New test case.
> > * gcc.target/mips/nans-legacy.c: New test case.
> > * gcc.target/mips/nansf-2008.c: New test case.
> > * gcc.target/mips/nansf-legacy.c: New test case.
> > * gcc.target/mips/mips.exp: Handle `-mabs=' and `-mnan='.
>
> OK, thanks.
Committed now, thanks for your review.
Maciej