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 10e6a57474f8d8afb11ee1acab27e29b2bc0dd28..eac6f7b09a4a0412325c41d27af3a23450f3547a 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 7c241400b7395648589e6a71654d82d0139ae433..39f44ffc9d61fe962e7620881d4cbc12ad7c0846 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"