Skip to content

Commit 23627b7

Browse files
committed
Skip the UInt8 test set if we don't have AVX2 and have an LLVM older than 8.
1 parent ab6d068 commit 23627b7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/miscellaneous.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,12 +1085,14 @@ function mul2!(y::Vector{T}, A::Matrix{UInt8}, x::Vector{T}) where T
10851085
end
10861086
y
10871087
end
1088-
@testset "UInt8 mul" begin
1089-
for n in 1:200
1090-
v1 = rand(n); v3 =copy(v1);
1091-
v2 = rand(n);
1092-
A = rand(UInt8, (length(v1)>>2) + (length(v1)%4 != 0), length(v2))
1093-
@test mul1!(v1, A, v2) mul2!(v3, A, v2)
1088+
if Base.libllvm_version v"8" || LoopVectorization.VectorizationBase.SIMD_NATIVE_INTEGERS
1089+
@testset "UInt8 mul" begin
1090+
for n in 1:200
1091+
v1 = rand(n); v3 =copy(v1);
1092+
v2 = rand(n);
1093+
A = rand(UInt8, (length(v1)>>2) + (length(v1)%4 != 0), length(v2))
1094+
@test mul1!(v1, A, v2) mul2!(v3, A, v2)
1095+
end
10941096
end
10951097
end
10961098

0 commit comments

Comments
 (0)