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
+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
/* { 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);
/* { 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);
} "-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
}]