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 412ebbfeee35ffd4ad424532440f7c053cda0d18..12bb6597acf334c5e48b4b4b1b439f071adb355f 100644 (file)
@@ -1,3 +1,7 @@
+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
index 2629a3cef37ce194a4c402194bf5b0dc7b5c3524..ba27090201e2440167a88a900e0f0573a25a2689 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)