target-supports.exp (check_effective_target_mips_soft_float): Delete.

* 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.

From-SVN: r130509
This commit is contained in:
Bob Wilson 2007-11-29 02:50:46 +00:00 committed by Bob Wilson
parent 20c8e40d25
commit 1a79f743ec
4 changed files with 18 additions and 9 deletions

View 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

View 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);

View 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);

View 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
}]