diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-30 18:30:30 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-05-01 13:25:56 +0100 |
| commit | ea310d9253f02649b450b822e18ed5c22868acce (patch) | |
| tree | 4e9d2ea2f1e9edc3ec590fc2b541e6d587a95046 /src | |
| parent | 09cfb248e7b1765865bcc0c174c019acfec6681c (diff) | |
| download | rust-ea310d9253f02649b450b822e18ed5c22868acce.tar.gz rust-ea310d9253f02649b450b822e18ed5c22868acce.zip | |
Reserve x18 on AArch64 and un-reserve x16
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/library-features/asm.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/library-features/asm.md b/src/doc/unstable-book/src/library-features/asm.md index 7c2bf621855..fa96e47ee03 100644 --- a/src/doc/unstable-book/src/library-features/asm.md +++ b/src/doc/unstable-book/src/library-features/asm.md @@ -681,7 +681,6 @@ Some registers cannot be used for input or output operands: | x86 | `mm[0-7]` | MMX registers are not currently supported (but may be in the future). | | x86 | `st([0-7])` | x87 registers are not currently supported (but may be in the future). | | AArch64 | `xzr` | This is a constant zero register which can't be modified. | -| AArch64 | `x16` | This is used internally by LLVM for speculative load hardening. | | ARM | `pc` | This is the program counter, not a real register. | | ARM | `r9` | This is a reserved register on some ARM targets. | | MIPS | `$0` or `$zero` | This is a constant zero register which can't be modified. | @@ -695,8 +694,8 @@ Some registers cannot be used for input or output operands: In some cases LLVM will allocate a "reserved register" for `reg` operands even though this register cannot be explicitly specified. Assembly code making use of reserved registers should be careful since `reg` operands may alias with those registers. Reserved registers are the frame pointer and base pointer - The frame pointer and LLVM base pointer on all architectures. -- `x16` on AArch64. -- `r6` and `r9` on ARM. +- `r9` on ARM. +- `x18` on AArch64. ## Template modifiers |
