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
This commit is contained in:
Adam Nemet 2009-05-05 20:54:06 +00:00 committed by Adam Nemet
parent 210aee68d4
commit 21c3348aea
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-05-05 Adam Nemet <anemet@caviumnetworks.com>
* 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 <janus@gcc.gnu.org> 2009-05-05 Janus Weil <janus@gcc.gnu.org>
PR fortran/39998 PR fortran/39998

View File

@ -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-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 "\tmult\t" } } */
/* { dg-final { scan-assembler "ac1" } } */ /* { dg-final { scan-assembler "ac1" } } */

View File

@ -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-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 "\tmultu\t" } } */
/* { dg-final { scan-assembler "ac1" } } */ /* { dg-final { scan-assembler "ac1" } } */

View File

@ -243,6 +243,7 @@ foreach option {
branch-cost branch-cost
code-readable code-readable
r10k-cache-barrier r10k-cache-barrier
tune
} { } {
lappend mips_option_groups $option "-m$option=.*" lappend mips_option_groups $option "-m$option=.*"
} }