OSDN Git Service

* lib/target-supports.exp
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jul 2009 15:15:53 +0000 (15:15 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jul 2009 15:15:53 +0000 (15:15 +0000)
(check_effective_target_mips_newabi_large_long_double): New.
* gcc.target/mips/fpr-moves-5.c: Require mips_newabi_large_long_double
target.
* gcc.target/mips/fpr-moves-6.c: Likewise.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/fpr-moves-5.c
gcc/testsuite/gcc.target/mips/fpr-moves-6.c
gcc/testsuite/lib/target-supports.exp

index d4f4d05..81ed85c 100644 (file)
@@ -1,3 +1,11 @@
+2009-07-06  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * lib/target-supports.exp
+       (check_effective_target_mips_newabi_large_long_double): New.
+       * gcc.target/mips/fpr-moves-5.c: Require mips_newabi_large_long_double
+       target.
+       * gcc.target/mips/fpr-moves-6.c: Likewise.
+
 2009-07-06  Simon Martin  <simartin@users.sourceforge.net>
 
        PR c++/40557
index 848e5ea..8f68575 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-options "-mabi=64 -mhard-float -O2 -EL" } */
+/* { dg-require-effective-target mips_newabi_large_long_double } */
 
 NOMIPS16 void
 foo (long double d, long double *x)
index 7f26113..f89a40a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-options "-mabi=64 -mhard-float -O2 -EB" } */
+/* { dg-require-effective-target mips_newabi_large_long_double } */
 
 NOMIPS16 void
 foo (long double d, long double *x)
index 7c6d0ed..d34f415 100644 (file)
@@ -734,6 +734,15 @@ proc check_effective_target_mips16_attribute { } {
     } [add_options_for_mips16_attribute ""]]
 }
 
+# Return 1 if the target supports long double larger than double when
+# using the new ABI, 0 otherwise.
+
+proc check_effective_target_mips_newabi_large_long_double { } {
+    return [check_no_compiler_messages mips_newabi_large_long_double object {
+       int dummy[sizeof(long double) > sizeof(double) ? 1 : -1];
+    } "-mabi=64"]
+}
+
 # Return 1 if the current multilib does not generate PIC by default.
 
 proc check_effective_target_nonpic { } {