Skip to content

Commit 1a1bdfb

Browse files
vchuravykshyatt
authored andcommitted
Update test/core/device/intrinsics/math.jl
1 parent 15c9dee commit 1a1bdfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/core/device/intrinsics/math.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ using SpecialFunctions
114114
@testset "Float16 - $op" for op in (log,exp,exp2,exp10,log2,log10)
115115
all_float_16 = collect(reinterpret(Float16, pattern) for pattern in UInt16(0):UInt16(1):typemax(UInt16))
116116
all_float_16 = filter(!isnan, all_float_16)
117+
if op in (log, log2, log10)
118+
all_float_16 = filter(>=(0), all_float_16)
119+
end
117120
@test testf(x->map(op, x), all_float_16)
118121
end
119122

0 commit comments

Comments
 (0)