| ... | ... | @@ -32,7 +32,13 @@ test isSignalNan { |
| 32 | 32 | // TODO: Signalling NaN values get converted to quiet NaN values in |
| 33 | 33 | // some cases where they shouldn't such that this can fail. |
| 34 | 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 | 42 | try expect(!isSignalNan(math.nan(T))); |
| 37 | 43 | try expect(!isSignalNan(@as(T, 1.0))); |
| 38 | 44 | try expect(!isSignalNan(math.inf(T))); |