2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / math-torture / math-torture.exp
blob43ea6ea2f7dc3a5391a116fcefefb62b58423453
1 # This harness is for tests that should be run at all optimisation levels.
3 # Exit immediately if this isn't a x86 target.
4 if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then {
5 return
8 set MATH_TORTURE_OPTIONS [list \
9 { -O0 } \
10 { -O0 -mfpmath=387 } \
11 { -O0 -msse -mno-sse2 -mfpmath=sse } \
12 { -O0 -msse -msse2 -mfpmath=sse } \
13 { -O0 -msse -mno-sse2 -mfpmath=sse,387 } \
14 { -O0 -msse -msse2 -mfpmath=sse,387 } \
15 { -O0 -mfpmath=387 -ffast-math } \
16 { -O0 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
17 { -O0 -msse -msse2 -mfpmath=sse -ffast-math } \
18 { -O0 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
19 { -O0 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
20 { -O2 } \
21 { -O2 -mfpmath=387 } \
22 { -O2 -msse -mno-sse2 -mfpmath=sse } \
23 { -O2 -msse -msse2 -mfpmath=sse } \
24 { -O2 -msse -mno-sse2 -mfpmath=sse,387 } \
25 { -O2 -msse -msse2 -mfpmath=sse,387 } \
26 { -O2 -mfpmath=387 -ffast-math } \
27 { -O2 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
28 { -O2 -msse -msse2 -mfpmath=sse -ffast-math } \
29 { -O2 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
30 { -O2 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
33 load_lib gcc-dg.exp
34 load_lib torture-options.exp
36 torture-init
37 set-torture-options $MATH_TORTURE_OPTIONS
39 dg-init
40 gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""
41 torture-finish
42 dg-finish