Commit 4d40a94f by Richard Sandiford Committed by Richard Sandiford

mips.exp (is_gp32_flag): Return true for -msmartmips.

gcc/testsuite/
	* gcc.target/mips/mips.exp (is_gp32_flag): Return true for -msmartmips.
	* gcc.target/mips/save-restore-5.c: Fix positioning of dg-do directive.

From-SVN: r126802
parent 48156a39
2007-07-20 Richard Sandiford <richard@codesourcery.com>
* gcc.target/mips/mips.exp (is_gp32_flag): Return true for -msmartmips.
* gcc.target/mips/save-restore-5.c: Fix positioning of dg-do directive.
2007-07-20 Uros Bizjak <ubizjak@gmail.com> 2007-07-20 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/19910 PR tree-optimization/19910
...@@ -86,6 +86,7 @@ proc setup_mips_tests {} { ...@@ -86,6 +86,7 @@ proc setup_mips_tests {} {
# Return true if command-line option FLAG forces 32-bit code. # Return true if command-line option FLAG forces 32-bit code.
proc is_gp32_flag {flag} { proc is_gp32_flag {flag} {
switch -glob -- $flag { switch -glob -- $flag {
-msmartmips -
-march=mips32* - -march=mips32* -
-mgp32 { return 1 } -mgp32 { return 1 }
default { return 0 } default { return 0 }
......
/* Check that we don't try to save the same register twice. */ /* Check that we don't try to save the same register twice. */
/* { dg-mips-options "-mips32r2 -mgp32 -mips16 -mno-abicalls -O2" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
/* { dg-mips-options "-mips32r2 -mgp32 -mips16 -mno-abicalls -O2" } */
int bar (int, int, int, int); int bar (int, int, int, int);
void frob (void); void frob (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment