# stage2: fix comptime bitcast involving f80 · gitcafe/zig

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

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

Visibility: public

Requested revision: 92bc3cbe27792be0300fb5f104c011a11f3cf40f

Requested commit: 92bc3cbe27792be0300fb5f104c011a11f3cf40f

Commit: 92bc3cbe27792be0300fb5f104c011a11f3cf40f

Tree: 8d9e7f2df29a824d104cfa01d2eb832d456554aa

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix comptime bitcast involving f80

* Sema: implement comptime bitcast of f80 with integer-like types
  bitwise rather than taking a round trip through memory layout.
* Type: introduce `isAbiInt`.
* Value: comptime memory write of f80 writes 0 bytes for padding
  instead of leaving the memory uninitialized.
* Value: floatReadFromMemory has a more general implementation, checking
  the endianness rather than checking for specific architectures.

This fixes behavior test failures occurring on MIPS.

```

## Parents

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

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