# stage1: Fix for atomicrmw xchg on fp types · gitcafe/zig

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

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

Visibility: public

Requested revision: d3fb9f95323eb09b1f1f52e31363401115bfdae9

Requested commit: d3fb9f95323eb09b1f1f52e31363401115bfdae9

Commit: d3fb9f95323eb09b1f1f52e31363401115bfdae9

Tree: e113fe0475d8f5d3e9289c4802b5e867fa860f0f

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Fix for atomicrmw xchg on fp types

Bitcast the pointer and operands to integer types having the same size,
working around LLVM inability to lower a LL/SC operation when the
operands have floating-point types (and are reasonably sized).

Closes #4457

```

## Parents

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

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