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

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

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

Visibility: public

Requested revision: 9f2a200a3fce81d2091cba16a715acd3fdf1d70e

Requested commit: 9f2a200a3fce81d2091cba16a715acd3fdf1d70e

Commit: 9f2a200a3fce81d2091cba16a715acd3fdf1d70e

Tree: 5c7f16ed4cac46550694f06a3d8ee0beb186edb4

Author: taylor.fish

Committer: Alex Rønne Petersen

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

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

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