OSDN Git Service

* lib/target-supports.exp (check_effective_target_mips_soft_float):
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2007 02:50:46 +0000 (02:50 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2007 02:50:46 +0000 (02:50 +0000)
Delete.
(check_effective_target_hard_float): New.
* gcc.dg/var-expand1.c: Skip for targets without FPU instructions.
* gcc.dg/pr30957-1.c: Likewise.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr30957-1.c
gcc/testsuite/gcc.dg/var-expand1.c
gcc/testsuite/lib/target-supports.exp

index 9b58311..f509021 100644 (file)
@@ -1,3 +1,11 @@
+2007-11-28  Bob Wilson  <bob.wilson@acm.org>
+       
+       * lib/target-supports.exp (check_effective_target_mips_soft_float):
+       Delete.
+       (check_effective_target_hard_float): New.
+       * gcc.dg/var-expand1.c: Skip for targets without FPU instructions.
+       * gcc.dg/pr30957-1.c: Likewise.
+       
 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
 
        PR ada/15803
index d4e0c76..5600ee9 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { xfail vax-*-* powerpc-*-*spe } } */
 /* We don't (and don't want to) perform this optimisation on soft-float
-   MIPS targets, where each addition is a library call.  */
-/* { dg-skip-if "" { mips_soft_float } { "*" } { "" } } */
+   targets, where each addition is a library call.  */
+/* { dg-require-effective-target hard_float } */
 /* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -dL" } */
 
 extern void abort (void);
index 89114c5..707e346 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* We don't (and don't want to) perform this optimisation on soft-float
-   MIPS targets, where each addition is a library call.  */
-/* { dg-skip-if "" { mips_soft_float } { "*" } { "" } } */
+   targets, where each addition is a library call.  */
+/* { dg-require-effective-target hard_float } */
 /* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -dL" } */
 
 extern void abort (void);
index 305aad2..2cd9165 100644 (file)
@@ -615,12 +615,13 @@ proc check_effective_target_mpaired_single { } {
     } "-mpaired-single"]
 }
 
-# Return true if we're testing a MIPS target that does not have access
-# to FPU instructions.
+# Return true if the target has access to FPU instructions.
 
-proc check_effective_target_mips_soft_float { } {
-    return [check_no_compiler_messages mips_soft_float assembly {
-       #if !defined (__mips_soft_float) && !defined (__mips16)
+proc check_effective_target_hard_float { } {
+    return [check_no_compiler_messages hard_float assembly {
+       #if ((defined __mips \
+             && (defined __mips_soft_float || defined __mips16)) \
+            || (defined __xtensa__ && defined __XTENSA_SOFT_FLOAT__))
        #error FOO
        #endif
     }]