Skip to content

Commit c74e4a2

Browse files
committed
skip runtime fma test on linux32
1 parent 986e0e6 commit c74e4a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/math.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,11 @@ end
12891289
end
12901290

12911291
@testset "fma" begin
1292-
for func in (fma, Base.fma_emulated, Base.fma_float) # use fma_float to test runtime fma
1292+
fma_list = (fma, Base.fma_emulated)
1293+
if !(Sys.islinux() && Int == Int32) # test runtime fma (skip linux32)
1294+
fun_list = (fun_list..., Base.fma_float)
1295+
end
1296+
for func in fma_list
12931297
@test func(nextfloat(1.),nextfloat(1.),-1.0) === 4.440892098500626e-16
12941298
@test func(nextfloat(1f0),nextfloat(1f0),-1f0) === 2.3841858f-7
12951299
@testset "$T" for T in (Float32, Float64)

0 commit comments

Comments
 (0)