From: Adam Nemet Date: Tue, 5 May 2009 20:54:06 +0000 (+0000) Subject: mips.exp: Add -mtune= to mips_option_groups. X-Git-Tag: releases/gcc-4.5.0~5924 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=21c3348aea87865dfa7e1d3ab3a6fa32a13bf325;p=gcc.git mips.exp: Add -mtune= to mips_option_groups. * gcc.target/mips/mips.exp: Add -mtune= to mips_option_groups. * gcc.target/mips/dspr2-MULT.c: Pass -mtune=74kc * gcc.target/mips/dspr2-MULTU.c: Likewise. From-SVN: r147134 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a770b58d400..376e4682cbe8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-05-05 Adam Nemet + + * gcc.target/mips/mips.exp: Add -mtune= to mips_option_groups. + * gcc.target/mips/dspr2-MULT.c: Pass -mtune=74kc + * gcc.target/mips/dspr2-MULTU.c: Likewise. + 2009-05-05 Janus Weil PR fortran/39998 diff --git a/gcc/testsuite/gcc.target/mips/dspr2-MULT.c b/gcc/testsuite/gcc.target/mips/dspr2-MULT.c index ab2c28a73215..8b815e5acb69 100644 --- a/gcc/testsuite/gcc.target/mips/dspr2-MULT.c +++ b/gcc/testsuite/gcc.target/mips/dspr2-MULT.c @@ -1,6 +1,7 @@ -/* Test MIPS32 DSP REV 2 MULT instruction */ +/* Test MIPS32 DSP REV 2 MULT instruction. Tune for a CPU that has + pipelined mult. */ /* { dg-do compile } */ -/* { dg-options "-mgp32 -mdspr2 -O2 -ffixed-hi -ffixed-lo" } */ +/* { dg-options "-mgp32 -mdspr2 -O2 -ffixed-hi -ffixed-lo -mtune=74kc" } */ /* { dg-final { scan-assembler "\tmult\t" } } */ /* { dg-final { scan-assembler "ac1" } } */ diff --git a/gcc/testsuite/gcc.target/mips/dspr2-MULTU.c b/gcc/testsuite/gcc.target/mips/dspr2-MULTU.c index 312938ae57d4..c457d245a318 100644 --- a/gcc/testsuite/gcc.target/mips/dspr2-MULTU.c +++ b/gcc/testsuite/gcc.target/mips/dspr2-MULTU.c @@ -1,6 +1,7 @@ -/* Test MIPS32 DSP REV 2 MULTU instruction */ +/* Test MIPS32 DSP REV 2 MULTU instruction. Tune for a CPU that has + pipelined multu. */ /* { dg-do compile } */ -/* { dg-options "-mgp32 -mdspr2 -O2 -ffixed-hi -ffixed-lo" } */ +/* { dg-options "-mgp32 -mdspr2 -O2 -ffixed-hi -ffixed-lo -mtune=74kc" } */ /* { dg-final { scan-assembler "\tmultu\t" } } */ /* { dg-final { scan-assembler "ac1" } } */ diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index 7befff5a1fae..a0b8fc396235 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -243,6 +243,7 @@ foreach option { branch-cost code-readable r10k-cache-barrier + tune } { lappend mips_option_groups $option "-m$option=.*" }