From: Richard Sandiford Date: Mon, 2 Jan 2012 11:11:45 +0000 (+0000) Subject: pr46309.c: Add -mtune=octeon2 for MIPS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3763a5b447bedc84e38fe48d84189824928e9f1;p=gcc.git pr46309.c: Add -mtune=octeon2 for MIPS. gcc/testsuite/ * gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS. From-SVN: r182792 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 412ebbfeee3..12bb6597acf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-01-02 Richard Sandiford + + * gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS. + 2012-01-02 Richard Sandiford * g++.dg/cpp0x/constexpr-rom.C: Look for .rdata rather than rodata diff --git a/gcc/testsuite/gcc.dg/pr46309.c b/gcc/testsuite/gcc.dg/pr46309.c index 2629a3cef37..ba27090201e 100644 --- a/gcc/testsuite/gcc.dg/pr46309.c +++ b/gcc/testsuite/gcc.dg/pr46309.c @@ -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)