# Fix PowerPC \`restore_rt\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 7f49dae284805a46098f07844b68a03a780e6ff2

Requested commit: 7f49dae284805a46098f07844b68a03a780e6ff2

Commit: 7f49dae284805a46098f07844b68a03a780e6ff2

Tree: fa6c7b9525f1080a4703c5347c01e9407502b9f6

Author: taylor.fish

Committer: taylor.fish

## Message

```
Fix PowerPC `restore_rt`

Clang fails to compile the CBE translation of this code ("non-ASM
statement in naked function"). Similar to the implementations of
`restore_rt` on x86 and ARM, when the CBE is in use, this commit employs
alternative inline assembly that avoids using non-immediate input
operands.

```

## Parents

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

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