mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 19:53:06 +00:00
std.math: Re-enable isSignalNan test on most targets.
This remains disabled on arm, aarch64, and powerpc, as well as for the C backend, as it still fails for these targets. See: https://github.com/ziglang/zig/issues/14366
This commit is contained in:
parent
c13713dd02
commit
1e838eba75
@ -32,7 +32,13 @@ test isSignalNan {
|
|||||||
// TODO: Signalling NaN values get converted to quiet NaN values in
|
// TODO: Signalling NaN values get converted to quiet NaN values in
|
||||||
// some cases where they shouldn't such that this can fail.
|
// some cases where they shouldn't such that this can fail.
|
||||||
// See https://github.com/ziglang/zig/issues/14366
|
// See https://github.com/ziglang/zig/issues/14366
|
||||||
// try expect(isSignalNan(math.snan(T)));
|
if (!builtin.cpu.arch.isArmOrThumb() and
|
||||||
|
!builtin.cpu.arch.isAARCH64() and
|
||||||
|
!builtin.cpu.arch.isPowerPC() and
|
||||||
|
builtin.zig_backend != .stage2_c)
|
||||||
|
{
|
||||||
|
try expect(isSignalNan(math.snan(T)));
|
||||||
|
}
|
||||||
try expect(!isSignalNan(math.nan(T)));
|
try expect(!isSignalNan(math.nan(T)));
|
||||||
try expect(!isSignalNan(@as(T, 1.0)));
|
try expect(!isSignalNan(@as(T, 1.0)));
|
||||||
try expect(!isSignalNan(math.inf(T)));
|
try expect(!isSignalNan(math.inf(T)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user