MIPS: Handle -mbranch-likely in testsuite options
authorToma Tabacu <toma.tabacu@imgtec.com>
Fri, 4 Nov 2016 16:47:32 +0000 (16:47 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Fri, 4 Nov 2016 16:47:32 +0000 (16:47 +0000)
gcc/testsuite/
* gcc.target/mips/mips.exp (mips-dg-options): Downgrade to R5
for -mbranch-likely, infer -mno-branch-likely for R6.

From-SVN: r241850

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips.exp

index 10e6a57..eac6f7b 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-04  Toma Tobacu  <toma.tobacu@imgtec.com>
+
+       * gcc.target/mips/mips.exp (mips-dg-options): Downgrade to R5
+       for -mbranch-likely, infer -mno-branch-likely for R6.
+
 2016-11-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        PR c++/71973
index 7c24140..39f44ff 100644 (file)
@@ -1176,7 +1176,8 @@ proc mips-dg-options { args } {
                       || [mips_have_test_option_p options "-mpaired-single"]
                       || [mips_have_test_option_p options "-mnan=legacy"]
                       || [mips_have_test_option_p options "-mabs=legacy"]
-                      || [mips_have_test_option_p options "!HAS_LSA"]) } {
+                      || [mips_have_test_option_p options "!HAS_LSA"]
+                      || [mips_have_test_option_p options "-mbranch-likely"]) } {
            if { $gp_size == 32 } {
                mips_make_test_option options "-mips32r5"
            } else {
@@ -1345,6 +1346,7 @@ proc mips-dg-options { args } {
            mips_make_test_option options "-mno-paired-single"
            mips_make_test_option options "-mnan=2008"
            mips_make_test_option options "-mabs=2008"
+           mips_make_test_option options "-mno-branch-likely"
        }
        if { [regexp {^-march=(octeon|loongson)} $arch] } {
            mips_make_test_option options "-mno-micromips"