Hi, The branch-cost-1.c test uses the isa>=4 option to ensure the existence of the MOVN/MOVZ instructions. This, however, does not take into account R6 targets, which are accepted by the isa>=4 option but do not support MOVN/MOVZ.
This particular test does not fail on R6, because it is checking for the absence of MOVN/MOVZ, but it is redundant. This patch fixes this by replacing isa>=4 with (HAS_MOVN), which will only accept targets in the [MIPS IV, R5] interval. Tested with mips-img-linux-gnu. Regards, Toma Tabacu gcc/testsuite/ChangeLog: 2016-11-15 Toma Tabacu <toma.tab...@imgtec.com> * gcc.target/mips/branch-cost-1.c: Use (HAS_MOVN) instead of isa>=4, in order to downgrade to R5. diff --git a/gcc/testsuite/gcc.target/mips/branch-cost-1.c b/gcc/testsuite/gcc.target/mips/branch-cost-1.c index 61c3029..7f7ebbe 100644 --- a/gcc/testsuite/gcc.target/mips/branch-cost-1.c +++ b/gcc/testsuite/gcc.target/mips/branch-cost-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-mbranch-cost=1 isa>=4" } */ +/* { dg-options "-mbranch-cost=1 (HAS_MOVN)" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ NOMIPS16 int foo (int x, int y, int z, int k)