Skip to content

Commit

Permalink
Fix IR test
Browse files Browse the repository at this point in the history
It looks like I get `fmul <8 x double>` sometimes in Travis.
  • Loading branch information
tkf committed Dec 10, 2019
1 parent 36ba657 commit 9521b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/__test_ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ twice(x) = 2x
ir_noinbounds = llvm_ir(mapbb, (twice, Float64[], Val(false)))
@debug "LLVM IR" ir_noinbounds=Text(ir_noinbounds)
if Base.JLOptions().check_bounds == 2 # --check-bounds=no
@test nmatches(r"fmul <4 x double>", ir_noinbounds) >= 4
@test nmatches(r"fmul <[0-9]+ x double>", ir_noinbounds) >= 4
else
@test nmatches(r"fmul <4 x double>", ir_noinbounds) == 0
@test nmatches(r"fmul <[0-9]+ x double>", ir_noinbounds) == 0
end
ir_inbounds = llvm_ir(mapbb, (twice, Float64[], Val(true)))
@debug "LLVM IR" ir_inbounds=Text(ir_noinbounds)
@test nmatches(r"fmul <4 x double>", ir_inbounds) >= 4
@test nmatches(r"fmul <[0-9]+ x double>", ir_inbounds) >= 4
end

0 comments on commit 9521b33

Please sign in to comment.