2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-13 12:11:08 +08:00

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
This commit is contained in:
Richard Sandiford 2007-11-20 21:17:58 +00:00 committed by Richard Sandiford
parent a7280feff6
commit d8538159f1
4 changed files with 23 additions and 0 deletions

@ -1,3 +1,10 @@
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

@ -1,4 +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 } { "*" } { "" } } */
/* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -dL" } */
extern void abort (void);

@ -1,4 +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 } { "*" } { "" } } */
/* { 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 { } {