Commit d8538159 by Richard Sandiford Committed by Richard Sandiford

target-supports.exp (check_effective_target_mips_soft_float): New procedure.

gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_mips_soft_float):
	New procedure.
	* gcc.dg/var-expand1.c: Skip for mips_soft_float.
	* gcc.dg/pr30957-1.c: Likewise.

From-SVN: r130321
parent a7280fef
2007-11-20 Richard Sandiford <rsandifo@nildram.co.uk>
* lib/target-supports.exp (check_effective_target_mips_soft_float):
New procedure.
* gcc.dg/var-expand1.c: Skip for mips_soft_float.
* gcc.dg/pr30957-1.c: Likewise.
2007-11-20 Jakub Jelinek <jakub@redhat.com>
PR c++/34089
/* { 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 } { "*" } { "" } } */
/* { 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 } { "*" } { "" } } */
/* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -dL" } */
extern void abort (void);
......
......@@ -615,6 +615,16 @@ proc check_effective_target_mpaired_single { } {
} "-mpaired-single"]
}
# Return true if we're testing a soft-float MIPS target.
proc check_effective_target_mips_soft_float { } {
return [check_no_compiler_messages mips_soft_float assembly {
#ifndef __mips_soft_float
#error FOO
#endif
}]
}
# Return true if the target is a 64-bit MIPS target.
proc check_effective_target_mips64 { } {
......
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