Skip to content

Commit 9975011

Browse files
committed
Fix test failure on 16 register platforms.
1 parent 4d29e79 commit 9975011

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/miscellaneous.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
s += x[m] * A[m,n] * y[n]
66
end);
77
lsdot3 = LoopVectorization.LoopSet(dot3q);
8-
@test LoopVectorization.choose_order(lsdot3) == ([:n, :m], :m, :n, :m, Unum & -2, Tnum)
8+
@test LoopVectorization.choose_order(lsdot3) == ([:n, :m], :m, :n, :m, Unum, Tnum)#&-2
99

1010
@static if VERSION < v"1.4"
1111
dot3(x, A, y) = dot(x, A * y)
@@ -20,6 +20,14 @@
2020
end
2121
s
2222
end
23+
function dot3avx24(x, A, y)
24+
M, N = size(A)
25+
s = zero(promote_type(eltype(x), eltype(A), eltype(y)))
26+
@avx tile=(2,4) for m 1:M, n 1:N
27+
s += x[m] * A[m,n] * y[n]
28+
end
29+
s
30+
end
2331
function dot3_avx(x, A, y)
2432
M, N = size(A)
2533
s = zero(promote_type(eltype(x), eltype(A), eltype(y)))

0 commit comments

Comments
 (0)