diff options
Diffstat (limited to 'testsuite/tests/llvm/should_compile/all.T')
-rw-r--r-- | testsuite/tests/llvm/should_compile/all.T | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/testsuite/tests/llvm/should_compile/all.T b/testsuite/tests/llvm/should_compile/all.T index dca858dec8..4fb98dac7b 100644 --- a/testsuite/tests/llvm/should_compile/all.T +++ b/testsuite/tests/llvm/should_compile/all.T @@ -5,11 +5,19 @@ def f( name, opts ): setTestOpts(f) +# Apples LLVM Toolchain knows about a `vortex` cpu (and possibly others), that +# the stock LLVM toolchain doesn't know abotu and will warn about. Let's not +# have test fail just because of processor name differences due to different +# LLVM Toolchains. GHC tries to pass what apple expects (on darwin), but can +# be used with the stock LLVM toolchain as well. +def ignore_llvm_and_vortex( msg ): + return re.sub(r".* is not a recognized processor for this target.*\n",r"",msg) + # test('T5486', normal, compile, ['']) -test('T5681', normal, compile, ['']) +test('T5681', [normal, normalise_errmsg_fun(ignore_llvm_and_vortex)], compile, ['']) test('T6158', [reqlib('vector'), reqlib('primitive')], compile, ['-package vector -package primitive']) -test('T7571', cmm_src, compile, ['-no-hs-main']) +test('T7571', [cmm_src, normalise_errmsg_fun(ignore_llvm_and_vortex)], compile, ['-no-hs-main']) test('T7575', unless(wordsize(32), skip), compile, ['']) -test('T8131b', normal, compile, ['']) -test('T11649', normal, compile, ['']) +test('T8131b', [normal, normalise_errmsg_fun(ignore_llvm_and_vortex)], compile, ['']) +test('T11649', [normal, normalise_errmsg_fun(ignore_llvm_and_vortex)], compile, ['']) test('T17920fail', cmm_src, compile_fail, ['-no-hs-main']) |