OSDN Git Service

gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jul 2007 16:00:08 +0000 (16:00 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jul 2007 16:00:08 +0000 (16:00 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126802 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips.exp
gcc/testsuite/gcc.target/mips/save-restore-5.c

index eba1c04..87dff78 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR tree-optimization/19910
index 6c3cf07..b9f3979 100644 (file)
@@ -86,6 +86,7 @@ proc setup_mips_tests {} {
 # Return true if command-line option FLAG forces 32-bit code.
 proc is_gp32_flag {flag} {
     switch -glob -- $flag {
+       -msmartmips -
        -march=mips32* -
        -mgp32 { return 1 }
        default { return 0 }
index f5f869d..9114daf 100644 (file)
@@ -1,6 +1,6 @@
 /* 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-mips-options "-mips32r2 -mgp32 -mips16 -mno-abicalls -O2" } */
 
 int bar (int, int, int, int);
 void frob (void);