Skip to content

Commit

Permalink
Add === test on vadd_Fast method added in last commit to confirm …
Browse files Browse the repository at this point in the history
…the return type.
  • Loading branch information
chriselrod committed Jan 10, 2021
1 parent 32841d1 commit 520f2d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ include("testsetup.jl")
for i (-5, -1, 0, 1, 4, 8), j (-5, -1, 0, 1, 4, 8)
@test VectorizationBase.lazymul(StaticInt(i), StaticInt(j)) === VectorizationBase.lazymul_no_promote(StaticInt(i), StaticInt(j)) === StaticInt(i*j)
end
fi = VectorizationBase.LazyMulAdd{8,0}(MM{8}(StaticInt(16)))
si = VectorizationBase.LazyMulAdd{2}(240)
@test @inferred(VectorizationBase.vadd_fast(fi, si)) === VectorizationBase.LazyMulAdd{2,128}(MM{8,4}(240))
end
end

Expand Down

2 comments on commit 520f2d0

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/27684

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.15.0 -m "<description of version>" 520f2d0381aa39210445f67ea6eba168ca47b7a7
git push origin v0.15.0

Please sign in to comment.