| ... | @@ -32,7 +32,13 @@ test isSignalNan { | ... | @@ -32,7 +32,13 @@ test isSignalNan { |
| 32 | // TODO: Signalling NaN values get converted to quiet NaN values in | 32 | // TODO: Signalling NaN values get converted to quiet NaN values in |
| 33 | // some cases where they shouldn't such that this can fail. | 33 | // some cases where they shouldn't such that this can fail. |
| 34 | // See https://github.com/ziglang/zig/issues/14366 | 34 | // See https://github.com/ziglang/zig/issues/14366 |
| 35 | // try expect(isSignalNan(math.snan(T))); | 35 | if (!builtin.cpu.arch.isArmOrThumb() and |
| | 36 | !builtin.cpu.arch.isAARCH64() and |
| | 37 | !builtin.cpu.arch.isPowerPC() and |
| | 38 | builtin.zig_backend != .stage2_c) |
| | 39 | { |
| | 40 | try expect(isSignalNan(math.snan(T))); |
| | 41 | } |
| 36 | try expect(!isSignalNan(math.nan(T))); | 42 | try expect(!isSignalNan(math.nan(T))); |
| 37 | try expect(!isSignalNan(@as(T, 1.0))); | 43 | try expect(!isSignalNan(@as(T, 1.0))); |
| 38 | try expect(!isSignalNan(math.inf(T))); | 44 | try expect(!isSignalNan(math.inf(T))); |