aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJie Mei <jie.mei@oss.cipunited.com>2023-07-04 17:50:48 +0800
committerYunQiang Su <yunqiang.su@cipunited.com>2023-07-05 09:35:10 +0800
commit9d5dbf706ad3114fa2c77b15a7bc8ce22e61b17d (patch)
treee84986d8b39f7f505a75f0846f345a13db5c8f94
parent6d966f9f174df11edbd516b6ad6ec404d30d0357 (diff)
downloadgcc-9d5dbf706ad3114fa2c77b15a7bc8ce22e61b17d.zip
gcc-9d5dbf706ad3114fa2c77b15a7bc8ce22e61b17d.tar.gz
gcc-9d5dbf706ad3114fa2c77b15a7bc8ce22e61b17d.tar.bz2
MIPS: Adjust mips16e2 related tests for ifcvt costing changes
A mips16e2 related test fails after the ifcvt change. The mips16e2 addition also causes a test for unrelated module to fail. This patch adjusts branch costs when running the two affected tests. These tests should not require the -mbranch-cost option, and this issue needs to be addressed. gcc/testsuite/ChangeLog: * gcc.target/mips/mips16e2-cmov.c: Adjust branch cost to encourage if-conversion. * gcc.target/mips/movcc-3.c: Same as above.
-rw-r--r--gcc/testsuite/gcc.target/mips/mips16e2-cmov.c2
-rw-r--r--gcc/testsuite/gcc.target/mips/movcc-3.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mips16e2-cmov.c b/gcc/testsuite/gcc.target/mips/mips16e2-cmov.c
index 6e9dd82..129ea23 100644
--- a/gcc/testsuite/gcc.target/mips/mips16e2-cmov.c
+++ b/gcc/testsuite/gcc.target/mips/mips16e2-cmov.c
@@ -1,4 +1,4 @@
-/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips16 -mmips16e2" } */
+/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips16 -mmips16e2 -mbranch-cost=2" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* Test MOVN. */
diff --git a/gcc/testsuite/gcc.target/mips/movcc-3.c b/gcc/testsuite/gcc.target/mips/movcc-3.c
index 80d4409..569a004 100644
--- a/gcc/testsuite/gcc.target/mips/movcc-3.c
+++ b/gcc/testsuite/gcc.target/mips/movcc-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "(HAS_MOVN) -mhard-float -mbranch-cost=2" } */
+/* { dg-options "(HAS_MOVN) -mhard-float -mbranch-cost=3" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os" } { "" } } */
/* { dg-final { scan-assembler "\tmovt\t" } } */
/* { dg-final { scan-assembler "\tmovf\t" } } */