Skip to content
Snippets Groups Projects
Commit 1c21e7d4 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

Compile T25062 simd tests even if we can't run them.

Helps avoid them being utterly broken.

Fixes #25341
parent cf0deeaf
No related branches found
No related tags found
No related merge requests found
Pipeline #102652 canceled
......@@ -10,7 +10,7 @@ main =
case foo ( \ x y -> plusDoubleX8# x y ) of
v -> case unpackDoubleX8# v of
(# d1, d2, d3, d4, d5, d6, d7, d8 #) ->
print [ D# d1, D# d2, D# d3, D# d4, D# d5, D# d6, D# d7, D# d8s ]
print [ D# d1, D# d2, D# d3, D# d4, D# d5, D# d6, D# d7, D# d8 ]
{-# NOINLINE foo #-}
foo :: ( DoubleX8# -> DoubleX8# -> DoubleX8# ) -> DoubleX8#
......
......@@ -58,13 +58,26 @@ test('simd014',
test('T22187', [],compile,[''])
test('T22187_run', [],compile_and_run,[''])
test('T25062_V16', [], compile_and_run, [''])
test('T25062_V32', [ unless(have_cpu_feature('avx2'), skip)
, only_ways(llvm_ways) # SIMD NCG TODO: support 256 bit wide vectors
]
, compile_and_run, [''])
test('T25062_V64', [ unless(have_cpu_feature('avx512f'), skip)
, only_ways(llvm_ways) # SIMD NCG TODO: support 512 bit wide vectors
]
, compile_and_run, [''])
# Even if the CPU we run on doesn't support *executing* those tests we should try to
# compile them.
# Currently even for compilation we only support 256+ bit on x86
only_V32_plus_compilation_support = unless(arch('x86_64'), skip)
test('T25062_V32'
, [ extra_hc_opts('-mavx2')
, only_ways(llvm_ways) # SIMD NCG TODO: support 256+ bit wide vectors
, only_V32_plus_compilation_support
]
, compile_and_run if have_cpu_feature('avx2') else compile
, [''])
test('T25062_V64'
, [ extra_hc_opts('-mavx512f')
, only_ways(llvm_ways) # SIMD NCG TODO: support 256+ bit wide vectors
, only_V32_plus_compilation_support
]
, compile_and_run if have_cpu_feature('avx512f') else compile
, [''])
test('T25169', [], compile_and_run, [''])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment