pr46309.c: Add -mtune=octeon2 for MIPS.
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 2 Jan 2012 11:11:45 +0000 (11:11 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 2 Jan 2012 11:11:45 +0000 (11:11 +0000)
gcc/testsuite/
* gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS.

From-SVN: r182792

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr46309.c

index 412ebbf..12bb659 100644 (file)
@@ -1,5 +1,9 @@
 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS.
+
+2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * g++.dg/cpp0x/constexpr-rom.C: Look for .rdata rather than rodata
        for MIPS.
 
index 2629a3c..ba27090 100644 (file)
@@ -1,6 +1,9 @@
 /* PR tree-optimization/46309 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-reassoc-details" } */
+/* The transformation depends on BRANCH_COST being greater than 1
+   (see the notes in the PR), so try to force that.  */
+/* { dg-additional-options "-mtune=octeon2" { target mips*-*-* } } */
 
 int
 f1 (int a)