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 {
8 set MATH_TORTURE_OPTIONS [list \
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 } \
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 } \
34 load_lib torture-options.exp
37 set-torture-options $MATH_TORTURE_OPTIONS
40 gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""