summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/perf
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-10-05 11:48:48 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-10-05 11:48:48 +0000
commitf8935df662594e35137eea164bd8f143618ab15a (patch)
tree9f35dc0f12fdce507495ec9628fafa0e89abd0a4 /testsuite/tests/ghc-regress/perf
parent950116db6ce035bcedafb93ef773dca07b39e744 (diff)
downloadhaskell-f8935df662594e35137eea164bd8f143618ab15a.tar.gz
T4321: use -msse2 to get reproducible floating-point results on x86
Diffstat (limited to 'testsuite/tests/ghc-regress/perf')
-rw-r--r--testsuite/tests/ghc-regress/perf/should_run/all.T8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/tests/ghc-regress/perf/should_run/all.T b/testsuite/tests/ghc-regress/perf/should_run/all.T
index 13487d1874..e0b25c9364 100644
--- a/testsuite/tests/ghc-regress/perf/should_run/all.T
+++ b/testsuite/tests/ghc-regress/perf/should_run/all.T
@@ -35,5 +35,11 @@ test('lazy-bs-alloc',
compile_and_run,
['-O'])
-test('T4321', omit_ways(['ghci']), compile_and_run, ['-O'])
+# Get reproducible floating-point results on x86
+if config.arch == 'i386':
+ sse2_opts = '-msse2'
+else:
+ sse2_opts = ''
+
+test('T4321', omit_ways(['ghci']), compile_and_run, ['-O ' + sse2_opts])