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

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

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

Visibility: public

Requested revision: 86f4dfe5a8a7632b26de5f1d109fba369095b0f7

Requested commit: 86f4dfe5a8a7632b26de5f1d109fba369095b0f7

Commit: 86f4dfe5a8a7632b26de5f1d109fba369095b0f7

Tree: 8daa8addb868fe87fd3f69ed5408c098317a06ca

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

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

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