i386.exp: Use glob, not find to collect tests.

2006-10-26  Richard Guenther  <rguenther@suse.de>

	* gcc.target/i386/i386.exp: Use glob, not find to collect
	tests.  Avoids recursing into subdirectories.
	* gcc.target/i386/math-torture/math-torture.exp: Torture
	for interesting ia32 math options.
	* gcc.target.i386/math-torture/lrint.c: New testcase.

From-SVN: r118065
This commit is contained in:
Richard Guenther 2006-10-26 08:23:19 +00:00 committed by Richard Biener
parent 9a3da65a38
commit 4bab2b2301
4 changed files with 66 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-10-26 Richard Guenther <rguenther@suse.de>
* gcc.target/i386/i386.exp: Use glob, not find to collect
tests. Avoids recursing into subdirectories.
* gcc.target/i386/math-torture/math-torture.exp: Torture
for interesting ia32 math options.
* gcc.target.i386/math-torture/lrint.c: New testcase.
2006-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/29563

View File

@ -44,7 +44,7 @@ foreach type { "" -mmmx -m3dnow -msse -msse2 } {
}
# Everything else.
set tests [lsort [find $srcdir/$subdir *.\[cS\]]]
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]]
set tests [prune $tests $srcdir/$subdir/vect-args.c]
# Main loop.

View File

@ -0,0 +1,26 @@
/* { dg-do assemble } */
long testlf (float x)
{
return __builtin_lrintf (x);
}
long testl (double x)
{
return __builtin_lrint (x);
}
long testll (long double x)
{
return __builtin_lrintl (x);
}
long long testllf (float x)
{
return __builtin_llrintf (x);
}
long long testll_ (double x)
{
return __builtin_llrint (x);
}
long long testlll (long double x)
{
return __builtin_llrintl (x);
}

View File

@ -0,0 +1,31 @@
# This harness is for tests that should be run at all optimisation levels.
set TORTURE_OPTIONS [list \
{ -O0 } \
{ -O0 -mfpmath=387 } \
{ -O0 -msse -mno-sse2 -mfpmath=sse } \
{ -O0 -msse -msse2 -mfpmath=sse } \
{ -O0 -msse -mno-sse2 -mfpmath=sse,387 } \
{ -O0 -msse -msse2 -mfpmath=sse,387 } \
{ -O0 -mfpmath=387 -ffast-math } \
{ -O0 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
{ -O0 -msse -msse2 -mfpmath=sse -ffast-math } \
{ -O0 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
{ -O0 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
{ -O2 } \
{ -O2 -mfpmath=387 } \
{ -O2 -msse -mno-sse2 -mfpmath=sse } \
{ -O2 -msse -msse2 -mfpmath=sse } \
{ -O2 -msse -mno-sse2 -mfpmath=sse,387 } \
{ -O2 -msse -msse2 -mfpmath=sse,387 } \
{ -O2 -mfpmath=387 -ffast-math } \
{ -O2 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
{ -O2 -msse -msse2 -mfpmath=sse -ffast-math } \
{ -O2 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
{ -O2 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
]
load_lib gcc-dg.exp
dg-init
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""
dg-finish