]> git.ipfire.org Git - thirdparty/gcc.git/commit
Adjust mips test for recent ifcvt costing changes
authorJeff Law <jlaw@ventanamicro>
Sat, 29 Apr 2023 16:16:21 +0000 (10:16 -0600)
committerJeff Law <jlaw@ventanamicro>
Sat, 29 Apr 2023 16:16:21 +0000 (10:16 -0600)
commitef6c3095aabe75af727a269d91d9ffa37f982ace
tree36943e1c81d3da539c91b906b2aa743cbe56e69d
parenta5b2a3bff8152aa34408d8ce40add82f4d22ff87
Adjust mips test for recent ifcvt costing changes

MIPS ports have been failing a few tests since the change to add cost
checks in another path through the if-converter pass.

As with the other ports, these look like cases where we don't do good
costing in the MIPS port.  Someone who cares about MIPS will need to
fix this properly.

In the mean time this patch adjusts the branch cost when running the
two affected tests and skips them at -Os.  This is enough to verify
that if conversion can still happen if the costs are adjusted.

gcc/testsuite
* gcc.target/mips/mips-ps-type-2.c: Adjust branch cost to
encourage if-conversion.  Skip for -Os.
* gcc.target/mips/movcc-3.c: Similarly.
gcc/testsuite/gcc.target/mips/mips-ps-type-2.c
gcc/testsuite/gcc.target/mips/movcc-3.c