[PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008.
Toma Tabacu
Toma.Tabacu@imgtec.com
Fri Dec 9 09:47:00 GMT 2016
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 {
More information about the Gcc-patches
mailing list