public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008.
@ 2016-12-09  9:47 Toma Tabacu
  2016-12-09 10:29 ` Matthew Fortune
  0 siblings, 1 reply; 3+ messages in thread
From: Toma Tabacu @ 2016-12-09  9:47 UTC (permalink / raw)
  To: gcc-patches; +Cc: Matthew Fortune, catherine_moore

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.

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 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008.
  2016-12-09  9:47 [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008 Toma Tabacu
@ 2016-12-09 10:29 ` Matthew Fortune
  2016-12-12 13:44   ` Toma Tabacu
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Fortune @ 2016-12-09 10:29 UTC (permalink / raw)
  To: Toma Tabacu, gcc-patches; +Cc: catherine_moore

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008.
  2016-12-09 10:29 ` Matthew Fortune
@ 2016-12-12 13:44   ` Toma Tabacu
  0 siblings, 0 replies; 3+ messages in thread
From: Toma Tabacu @ 2016-12-12 13:44 UTC (permalink / raw)
  To: Matthew Fortune, gcc-patches; +Cc: catherine_moore

> > 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-12 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-09  9:47 [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008 Toma Tabacu
2016-12-09 10:29 ` Matthew Fortune
2016-12-12 13:44   ` Toma Tabacu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).