From d7d2e7b46753eea479159d23b6451c341f6e8f94 Mon Sep 17 00:00:00 2001 From: Toma Tabacu Date: Fri, 4 Nov 2016 16:47:32 +0000 Subject: [PATCH] MIPS: Handle -mbranch-likely in testsuite options 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 | 5 +++++ gcc/testsuite/gcc.target/mips/mips.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10e6a57..eac6f7b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-04 Toma Tobacu + + * 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 PR c++/71973 diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index 7c24140..39f44ff 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -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" -- 2.7.4