File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -404,11 +404,17 @@ T = Float32
404
404
@test t ≈ Bernoulli_logitavx (bit, a)
405
405
@test t ≈ Bernoulli_logit_avx (bit, a)
406
406
407
- ai = [rand (Bool) for _ in 1 : 71 ];
408
- bi = [rand (Bool) for _ in 1 : 71 ];
409
- @test (ai .& bi) == (@avx ai .& bi)
410
- @test (ai .| bi) == (@avx ai .| bi)
411
- @test (ai .⊻ bi) == (@avx ai .⊻ bi)
407
+ if LoopVectorization. VectorizationBase. AVX2 || Base. libllvm_version ≥ v " 8" # FIXME Why doesn't this work on Travis Ivy Bridge Julia 1.1?
408
+ ai = [rand (Bool) for _ in 1 : 71 ];
409
+ bi = [rand (Bool) for _ in 1 : 71 ];
410
+ @test (ai .& bi) == (@avx ai .& bi)
411
+ @test (ai .| bi) == (@avx ai .| bi)
412
+ @test (ai .⊻ bi) == (@avx ai .⊻ bi)
413
+ else
414
+ @test_broken (ai .& bi) == (@avx ai .& bi)
415
+ @test_broken (ai .| bi) == (@avx ai .| bi)
416
+ @test_broken (ai .⊻ bi) == (@avx ai .⊻ bi)
417
+ end
412
418
a = bitrand (127 ); b = bitrand (127 );
413
419
@test (a .& b) == (@avx a .& b)
414
420
@test (a .| b) == (@avx a .| b)
You can’t perform that action at this time.
0 commit comments