Skip to content

Commit 588ea17

Browse files
committed
Update warn_check_args test
1 parent aaef5f0 commit 588ea17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/condense_loopset.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ function setup_call(
818818
call = check_empty ? check_if_empty(ls, call) : call
819819
argfailure = make_crashy(make_fast(q))
820820
if warncheckarg 0
821-
warning = :(@warn "`LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.\nUse `warch_check_args=false`, e.g. `@turbo warn_check_args=false ...`, to disable this warning.")
821+
warning = :(@warn "`LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.\nUse `warn_check_args=false`, e.g. `@turbo warn_check_args=false ...`, to disable this warning.")
822822
warncheckarg > 0 && push!(warning.args, :(maxlog=$warncheckarg))
823823
argfailure = Expr(:block, warning, argfailure)
824824
end

test/fallback.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@test @inferred !LoopVectorization.check_args(Diagonal(x))
3535

3636
@test_nowarn msdavx(x)
37-
@test_logs (:warn,"`LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.") msdavx(FallbackArrayWrapper(x))
37+
@test_logs (:warn,"`LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.\nUse `warn_check_args=false`, e.g. `@turbo warn_check_args=false ...`, to disable this warning.") msdavx(FallbackArrayWrapper(x))
3838
@test msdavx(FallbackArrayWrapper(x)) == 1e18
3939
@test msd(x) == msdavx(FallbackArrayWrapper(x))
4040
@test msdavx(x) != msdavx(FallbackArrayWrapper(x))

0 commit comments

Comments
 (0)