Commit 1a79f743 by Bob Wilson Committed by Bob Wilson

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
parent 20c8e40d
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> 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
PR ada/15803 PR ada/15803
/* { dg-do run { xfail vax-*-* powerpc-*-*spe } } */ /* { dg-do run { xfail vax-*-* powerpc-*-*spe } } */
/* We don't (and don't want to) perform this optimisation on soft-float /* We don't (and don't want to) perform this optimisation on soft-float
MIPS targets, where each addition is a library call. */ targets, where each addition is a library call. */
/* { dg-skip-if "" { mips_soft_float } { "*" } { "" } } */ /* { dg-require-effective-target hard_float } */
/* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -dL" } */ /* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -dL" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* We don't (and don't want to) perform this optimisation on soft-float /* We don't (and don't want to) perform this optimisation on soft-float
MIPS targets, where each addition is a library call. */ targets, where each addition is a library call. */
/* { dg-skip-if "" { mips_soft_float } { "*" } { "" } } */ /* { dg-require-effective-target hard_float } */
/* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -dL" } */ /* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -dL" } */
extern void abort (void); extern void abort (void);
......
...@@ -615,12 +615,13 @@ proc check_effective_target_mpaired_single { } { ...@@ -615,12 +615,13 @@ proc check_effective_target_mpaired_single { } {
} "-mpaired-single"] } "-mpaired-single"]
} }
# Return true if we're testing a MIPS target that does not have access # Return true if the target has access to FPU instructions.
# to FPU instructions.
proc check_effective_target_mips_soft_float { } { proc check_effective_target_hard_float { } {
return [check_no_compiler_messages mips_soft_float assembly { return [check_no_compiler_messages hard_float assembly {
#if !defined (__mips_soft_float) && !defined (__mips16) #if ((defined __mips \
&& (defined __mips_soft_float || defined __mips16)) \
|| (defined __xtensa__ && defined __XTENSA_SOFT_FLOAT__))
#error FOO #error FOO
#endif #endif
}] }]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment