Skip to content

Commit c3e69df

Browse files
committed
Bump version, and SIMDPirates and VectorizationBase versions.
1 parent 02fca62 commit c3e69df

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.7.0"
4+
version = "0.7.1"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -15,10 +15,10 @@ VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
1515
[compat]
1616
DocStringExtensions = "0.8"
1717
OffsetArrays = "1"
18-
SIMDPirates = "0.7.15"
18+
SIMDPirates = "0.7.16"
1919
SLEEFPirates = "0.4.4"
2020
UnPack = "0"
21-
VectorizationBase = "0.10.4"
21+
VectorizationBase = "0.10.5"
2222
julia = "1.1"
2323

2424
[extras]

test/copy.jl

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using LoopVectorization, Test
1+
using LoopVectorization, OffsetArrays, Test
22

33

44
@testset "copy" begin
@@ -82,7 +82,31 @@ using LoopVectorization, Test
8282
x[i] = a
8383
end
8484
end
85-
85+
function reversecopy1!(B, A)
86+
for i in eachindex(A)
87+
B[i] = A[11-i]
88+
end
89+
B
90+
end
91+
function reversecopy1avx!(B, A)
92+
@avx for i in eachindex(A)
93+
B[i] = A[11-i]
94+
end
95+
B
96+
end
97+
function reversecopy2!(B, A)
98+
for i in eachindex(B)
99+
B[i] = A[-i]
100+
end
101+
B
102+
end
103+
function reversecopy2avx!(B, A)
104+
@avx for i in eachindex(B)
105+
B[i] = A[-i]
106+
end
107+
B
108+
end
109+
86110

87111
for T (Float32, Float64, Int32, Int64)
88112
@show T, @__LINE__
@@ -150,6 +174,8 @@ using LoopVectorization, Test
150174
@avx x .= a;
151175
fill!(q2, a);
152176
@test x == q2
153-
177+
178+
@test reversecopy1!(zeros(T, 10), collect(1:10)) == reversecopy1avx!(zeros(T, 10), collect(1:10))
179+
@test reversecopy2!(zeros(T, 10), OffsetArray(collect(1:10), -10:-1)) == reversecopy2avx!(zeros(T, 10), OffsetArray(collect(1:10), -10:-1))
154180
end
155181
end

0 commit comments

Comments
 (0)