Skip to content

Commit d8ad96d

Browse files
author
Michael Abbott
committed
upgrade tests
1 parent 51d535b commit d8ad96d

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

test/runtests.jl

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -469,29 +469,24 @@ end
469469
xi1 = tovector(vi1); xi2 = tovector(vi2);
470470
xi3 = mapreduce(tovector, vcat, m1.data);
471471
xi4 = mapreduce(tovector, vcat, m2.data);
472-
for f [+, -, *, div, ÷, /, rem, %, <<, >>, >>>, , &, |, VectorizationBase.rotate_left, VectorizationBase.rotate_right, copysign, max, min]
472+
for f [+, -, *, div, ÷, /, rem, %, <<, >>, >>>, , &, |, fld, mod, VectorizationBase.rotate_left, VectorizationBase.rotate_right, copysign, max, min]
473473
# @show f
474474
check_within_limits(tovector(@inferred(f(vi1, vi2))), f.(xi1, xi2))
475475
check_within_limits(tovector(@inferred(f(j, vi2))), f.(j, xi2))
476476
check_within_limits(tovector(@inferred(f(vi1, i))), f.(xi1, i))
477477
check_within_limits(tovector(@inferred(f(m1, i))), f.(xi3, i))
478-
check_within_limits(tovector(@inferred(f(m1, vi2))), f.(xi3, xi2))
479-
check_within_limits(tovector(@inferred(f(m1, m2))), f.(xi3, xi4))
478+
# check_within_limits(tovector(@inferred(f(m1, vi2))), f.(xi3, xi2))
479+
# check_within_limits(tovector(@inferred(f(m1, m2))), f.(xi3, xi4))
480480
check_within_limits(tovector(@inferred(f(m1, m1))), f.(xi3, xi3))
481481
check_within_limits(tovector(@inferred(f(m2, i))), f.(xi4, i))
482-
check_within_limits(tovector(@inferred(f(m2, vi2))), f.(xi4, xi2))
482+
# check_within_limits(tovector(@inferred(f(m2, vi2))), f.(xi4, xi2))
483483
check_within_limits(tovector(@inferred(f(m2, m2))), f.(xi4, xi4))
484-
check_within_limits(tovector(@inferred(f(m2, m1))), f.(xi4, xi3))
484+
# check_within_limits(tovector(@inferred(f(m2, m1))), f.(xi4, xi3))
485485
if !((f === VectorizationBase.rotate_left) || (f === VectorizationBase.rotate_right))
486486
check_within_limits(tovector(@inferred(f(j, m1))), f.(j, xi3))
487487
check_within_limits(tovector(@inferred(f(j, m2))), f.(j, xi4))
488488
end
489489
end
490-
for f in [fld, mod]
491-
@test vcat(tovector.(f.(vi1.data, vi2.data))...) == f.(xi1, xi2)
492-
@test vcat(tovector.(f.(vi1.data, i))...) == f.(xi1, i)
493-
@test vcat(tovector.(f.(i, vi2.data))...) == f.(i, xi2)
494-
end
495490
@test tovector(@inferred(vi1 ^ i)) xi1 .^ i
496491
vf1 = VectorizationBase.VecUnroll((
497492
Vec(ntuple(_ -> Core.VecElement(randn()), Val(W64))),
@@ -523,8 +518,8 @@ end
523518
@test vtwos32 === VectorizationBase.VecUnroll((vbroadcast(W32, 2f0),vbroadcast(W32, 2f0)))
524519
@test vf2 === v2f32
525520

526-
@test tovector(@inferred(clamp(m1.data[2], 2:i))) == clamp.(tovector(m1.data[2]), 2, i)
527-
@test tovector(@inferred(mod(m1.data[2], 1:i))) == mod1.(tovector(m1.data[2]), i)
521+
@test tovector(clamp(m1, 2:i)) == clamp.(tovector(m1), 2, i)
522+
@test tovector(mod(m1, 1:i)) == mod1.(tovector(m1), i)
528523
end
529524
@testset "Ternary Functions" begin
530525
v1 = Vec(ntuple(_ -> Core.VecElement(randn()), Val(W64)))

0 commit comments

Comments
 (0)