llvm codegen: fix f16,f32,f64 nan bitcasts

@bitCast from integer NaN representation to float NaN resulted in
changed bits in float. This only happened with signaled NaN.

- added test for signaled NaN
- added tests for quiet NaN (for completeness)

closes #14198
This commit is contained in:
Michael Dusan
2023-01-04 15:18:17 -05:00
committed by Andrew Kelley
parent b89158d6fd
commit e0fb4c29cb
3 changed files with 32 additions and 4 deletions
+1
View File
@@ -241,6 +241,7 @@ test {
{
_ = @import("behavior/bugs/13063.zig");
_ = @import("behavior/bugs/11227.zig");
_ = @import("behavior/bugs/14198.zig");
_ = @import("behavior/export.zig");
}