Skip to content

Commit d526f27

Browse files
committed
Remove fastmath tests that are defined to be undef/poison
1 parent 6ddc7f1 commit d526f27

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/fastmath.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ fm_fast_64_upd(x) = @fastmath (r=x; r+=eps64_2; r+=eps64_2)
6060
@test @fastmath(cmp(two,two)) == cmp(two,two)
6161
@test @fastmath(cmp(two,three)) == cmp(two,three)
6262
@test @fastmath(cmp(three,two)) == cmp(three,two)
63-
@test @fastmath(one/zero) == convert(T,Inf)
64-
@test @fastmath(-one/zero) == -convert(T,Inf)
65-
@test isnan(@fastmath(zero/zero)) # must not throw
63+
# The following operations may yield `undef` (LLVM 11)
64+
# or `poison` (LLVM 12+)
65+
# @fastmath(one/zero)
66+
# @fastmath(-one/zero)
67+
# @fastmath(zero/zero)
6668

6769
for x in (zero, two, convert(T, Inf), convert(T, NaN))
6870
@test @fastmath(isfinite(x))

0 commit comments

Comments
 (0)