# llvm codegen: fix f16,f32,f64 nan bitcasts · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e0fb4c29cb618fe912c82fed06bb305db14606d8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e0fb4c29cb618fe912c82fed06bb305db14606d8

Requested commit: e0fb4c29cb618fe912c82fed06bb305db14606d8

Commit: e0fb4c29cb618fe912c82fed06bb305db14606d8

Tree: 8443bb64aaf65db00dc760c659c93754031fd824

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
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

```

## Parents

- [b89158d6fd7ce0960b3f8085368ae102b48747d0](https://git.cafe/gitcafe/zig/commit/b89158d6fd7ce0960b3f8085368ae102b48747d0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e0fb4c29cb618fe912c82fed06bb305db14606d8?format=markdown)
