| ... | ... | @@ -156,3 +156,13 @@ test "math.sin64.special" { |
| 156 | 156 | try expect(math.isNan(sin64(-math.inf(f64)))); |
| 157 | 157 | try expect(math.isNan(sin64(math.nan(f64)))); |
| 158 | 158 | } |
| 159 | |
| 160 | test "math.sin32 #9901" { |
| 161 | const float = @bitCast(f32, @as(u32, 0b11100011111111110000000000000000)); |
| 162 | _ = std.math.sin(float); |
| 163 | } |
| 164 | |
| 165 | test "math.sin64 #9901" { |
| 166 | const float = @bitCast(f64, @as(u64, 0b1111111101000001000000001111110111111111100000000000000000000001)); |
| 167 | _ = std.math.sin(float); |
| 168 | } |