diff mbox

[testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008.

Message ID A614194ED15B4844BC4C9FB7F21FCD9222536FCD@HHMAIL01.hh.imgtec.org
State New
Headers show

Commit Message

Toma Tabacu Dec. 9, 2016, 9:47 a.m. UTC
Hi,

The -mnan=2008 and -mabs=2008 options are not supported on pre-R2 targets.
This results in failures for tests which use these options, such as nan-2008.c,
fabs-2008.c etc.

This patch makes the testsuite upgrade to R2 if -mnan=2008 and -mabs=2008 are
used as test options.

Tested with mips-mti-elf.

Regards,
Toma Tabacu

gcc/testsuite/ChangeLog:

	* gcc.target/mips/mips.exp (mips-dg-options): Upgrade to R2 for
	-mnan=2008 and -mabs=2008.

Comments

Matthew Fortune Dec. 9, 2016, 10:29 a.m. UTC | #1
Toma Tabacu <Toma.Tabacu@imgtec.com>
> The -mnan=2008 and -mabs=2008 options are not supported on pre-R2 targets.
> This results in failures for tests which use these options, such as nan-2008.c,
> fabs-2008.c etc.
> 
> This patch makes the testsuite upgrade to R2 if -mnan=2008 and -mabs=2008 are
> used as test options.
> 
> Tested with mips-mti-elf.
> 
> Regards,
> Toma Tabacu
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.target/mips/mips.exp (mips-dg-options): Upgrade to R2 for
> 	-mnan=2008 and -mabs=2008.

OK, thanks.

Matthew
Toma Tabacu Dec. 12, 2016, 1:44 p.m. UTC | #2
> > The -mnan=2008 and -mabs=2008 options are not supported on pre-R2
> targets.
> > This results in failures for tests which use these options, such as nan-2008.c,
> > fabs-2008.c etc.
> >
> > This patch makes the testsuite upgrade to R2 if -mnan=2008 and -mabs=2008
> are
> > used as test options.
> >
> > Tested with mips-mti-elf.
> >
> > Regards,
> > Toma Tabacu
> >
> > gcc/testsuite/ChangeLog:
> >
> > 	* gcc.target/mips/mips.exp (mips-dg-options): Upgrade to R2 for
> > 	-mnan=2008 and -mabs=2008.
> 
> OK, thanks.
> 
> Matthew

Committed as r243542.

Regards,
Toma
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp
index c0b9680..3d04d2f 100644
--- a/gcc/testsuite/gcc.target/mips/mips.exp
+++ b/gcc/testsuite/gcc.target/mips/mips.exp
@@ -1145,7 +1145,9 @@  proc mips-dg-options { args } {
 		 || [mips_have_test_option_p options "HAS_INS"]
 		 || [mips_have_test_option_p options "HAS_MADD"]
 		 || [mips_have_test_option_p options "HAS_MADDPS"]
-		 || [mips_have_test_option_p options "-mdspr2"]) } {
+		 || [mips_have_test_option_p options "-mdspr2"]
+		 || [mips_have_test_option_p options "-mnan=2008"]
+		 || [mips_have_test_option_p options "-mabs=2008"]) } {
 	    if { $gp_size == 32 } {
 		mips_make_test_option options "-mips32r2"
 	    } else {