Skip to content

Commit

Permalink
Run unrolling tests only on llvm >= v"14"
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Apr 26, 2023
1 parent 7ddc013 commit c91fa34
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions test/vectorization_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,32 @@ if Base.JLOptions().check_bounds != 1
r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64",
str
) == 2
if Base.libllvm_version >= v"14"
InteractiveUtils.code_llvm(
io,
noudot,
Tuple{Vector{Float64},Vector{Float64}}
)
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 2

InteractiveUtils.code_llvm(io, noudot, Tuple{Vector{Float64},Vector{Float64}})
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 2
InteractiveUtils.code_llvm(
io,
u1dot,
Tuple{Vector{Float64},Vector{Float64}}
)
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 2

InteractiveUtils.code_llvm(io, u1dot, Tuple{Vector{Float64},Vector{Float64}})
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 2

InteractiveUtils.code_llvm(io, u2dot, Tuple{Vector{Float64},Vector{Float64}})
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 4
InteractiveUtils.code_llvm(
io,
u2dot,
Tuple{Vector{Float64},Vector{Float64}}
)
stru = String(take!(io))
@test !occursin(r"call <8 x double> @llvm.masked.load.v8f64.p0v8f64", stru)
@test numoccurences(r" = load <[0-9] x double>", stru) == 4
end
end

2 comments on commit c91fa34

@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/82374

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 v1.0.0 -m "<description of version>" c91fa3453e812eb8e94268db98a17f6fbe03d678
git push origin v1.0.0

Please sign in to comment.