summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2018-03-19 15:46:44 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2018-03-19 15:48:31 +0300
commit5a1ad231fc871f27f2811ae46285a79573d8dfae (patch)
tree9a7fb8ed335780991b1b307e1d89e21e688b76d6 /testsuite/tests
parent2a3702d8950ebdec27357e08caae3b1cd4f8b00d (diff)
downloadhaskell-5a1ad231fc871f27f2811ae46285a79573d8dfae.tar.gz
Update test for #5129:
Make sure it runs with --fast validate with correct optimisation settings (-O1 or above) so that it actually tests the bug. Because the bug is in the simplifier running it with -O0 doesn't test it.
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/codeGen/should_run/all.T8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/tests/codeGen/should_run/all.T b/testsuite/tests/codeGen/should_run/all.T
index 9403c4b1e1..cf4904e79e 100644
--- a/testsuite/tests/codeGen/should_run/all.T
+++ b/testsuite/tests/codeGen/should_run/all.T
@@ -90,7 +90,13 @@ test('T3677', extra_run_opts('+RTS -K8k -RTS'), compile_and_run, [''])
test('T4441', normal, compile_and_run, [''])
test('T5149', omit_ways(['ghci']), multi_compile_and_run,
['T5149', [('T5149_cmm.cmm', '')], ''])
-test('T5129', normal, compile_and_run, [''])
+
+test('T5129',
+ # The bug is in simplifier when run with -O1 and above, so only run it
+ # optimised, using any backend.
+ [ only_ways(['optasm']), expect_broken(5129) ],
+ compile_and_run, [''])
+
test('T5626', exit_code(1), compile_and_run, [''])
test('T5747', when(arch('i386'), extra_hc_opts('-msse2')), compile_and_run, ['-O2'])
test('T5785', normal, compile_and_run, [''])