Skip to content

Commit

Permalink
Test that can_avx validates exp by itself
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Sep 19, 2022
1 parent da44c74 commit 5ef2edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/safe_turbo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# `gamma` can be AVX'd, but `can_turbo` can:
f(x) = exp(x)

@test LoopVectorization.ArrayInterface.can_avx(exp)
@test !LoopVectorization.ArrayInterface.can_avx(f)
@test LoopVectorization.can_turbo(exp, Val(1))
@test LoopVectorization.can_turbo(f, Val(1))
Expand Down

0 comments on commit 5ef2edc

Please sign in to comment.