Skip to content

Commit 6d7b07e

Browse files
committed
Add a test
1 parent 20386cc commit 6d7b07e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/tullio.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,13 @@ using LoopVectorization, Test
156156
dadada!(EV, Fu, V)
157157
dadada_noavx!(EV2, Fu, V)
158158
@test EV EV2
159+
160+
161+
let A = ones(2, 2, 2, 2)
162+
𝒜𝒸𝒸 = 0.0
163+
LoopVectorization.@turbo unroll = 0 for b in axes(A, 2), a in axes(A, 1)
164+
𝒜𝒸𝒸 = 𝒜𝒸𝒸 + A[a, b, a, b]
165+
end
166+
@test 𝒜𝒸𝒸 == 4.0
167+
end
159168
end

0 commit comments

Comments
 (0)