Skip to content

Commit 6c6cbcd

Browse files
committed
Added test file for can_avx.jl
1 parent 5cb475f commit 6c6cbcd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/can_avx.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
4+
@testset "can_avx" begin
5+
6+
@test LoopVectorization.ArrayInterface.can_avx(log)
7+
@test LoopVectorization.ArrayInterface.can_avx(log1p)
8+
@test LoopVectorization.ArrayInterface.can_avx(exp)
9+
@test LoopVectorization.ArrayInterface.can_avx(+)
10+
@test LoopVectorization.ArrayInterface.can_avx(-)
11+
@test LoopVectorization.ArrayInterface.can_avx(Base.FastMath.add_fast)
12+
@test LoopVectorization.ArrayInterface.can_avx(/)
13+
@test LoopVectorization.ArrayInterface.can_avx(sqrt)
14+
@test !LoopVectorization.ArrayInterface.can_avx(clenshaw)
15+
16+
end
17+
18+

0 commit comments

Comments
 (0)