From d526f27d12428ed1ae6e4d171297981d3848781b Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sat, 12 Dec 2020 13:00:55 -0500 Subject: [PATCH] Remove fastmath tests that are defined to be undef/poison --- test/fastmath.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/fastmath.jl b/test/fastmath.jl index bce043d7b32b02..8a17445c8af00a 100644 --- a/test/fastmath.jl +++ b/test/fastmath.jl @@ -60,9 +60,11 @@ fm_fast_64_upd(x) = @fastmath (r=x; r+=eps64_2; r+=eps64_2) @test @fastmath(cmp(two,two)) == cmp(two,two) @test @fastmath(cmp(two,three)) == cmp(two,three) @test @fastmath(cmp(three,two)) == cmp(three,two) - @test @fastmath(one/zero) == convert(T,Inf) - @test @fastmath(-one/zero) == -convert(T,Inf) - @test isnan(@fastmath(zero/zero)) # must not throw + # The following operations may yield `undef` (LLVM 11) + # or `poison` (LLVM 12+) + # @fastmath(one/zero) + # @fastmath(-one/zero) + # @fastmath(zero/zero) for x in (zero, two, convert(T, Inf), convert(T, NaN)) @test @fastmath(isfinite(x))