Skip to content

Commit 90bb5fc

Browse files
authored
Rollup merge of rust-lang#90736 - Lokathor:inline-asm-docs-updates, r=Amanieu
adjust documented inline-asm register constraints This change more clearly specifies how `reg` and `reg_thumb` work with ARM, Thumb2, and Thumb1 code. Based upon the [llvm documentation](https://llvm.org/docs/LangRef.html#supported-constraint-code-list) for register constraint codes. To be clear, this just updates the docs to match what already happens with rustc/llvm. No change in the compiler is required to make it match this new documentation.
2 parents a09115f + a306d35 commit 90bb5fc

File tree

1 file changed

+5
-2
lines changed
  • src/doc/unstable-book/src/library-features

1 file changed

+5
-2
lines changed

src/doc/unstable-book/src/library-features/asm.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,12 @@ Here is the list of currently supported register classes:
562562
| AArch64 | `vreg` | `v[0-31]` | `w` |
563563
| AArch64 | `vreg_low16` | `v[0-15]` | `x` |
564564
| AArch64 | `preg` | `p[0-15]`, `ffr` | Only clobbers |
565-
| ARM | `reg` | `r[0-12]`, `r14` | `r` |
566-
| ARM (Thumb) | `reg_thumb` | `r[0-r7]` | `l` |
565+
| ARM (ARM) | `reg` | `r[0-12]`, `r14` | `r` |
566+
| ARM (Thumb2) | `reg` | `r[0-12]`, `r14` | `r` |
567+
| ARM (Thumb1) | `reg` | `r[0-7]` | `r` |
567568
| ARM (ARM) | `reg_thumb` | `r[0-r12]`, `r14` | `l` |
569+
| ARM (Thumb2) | `reg_thumb` | `r[0-7]` | `l` |
570+
| ARM (Thumb1) | `reg_thumb` | `r[0-7]` | `l` |
568571
| ARM | `sreg` | `s[0-31]` | `t` |
569572
| ARM | `sreg_low16` | `s[0-15]` | `x` |
570573
| ARM | `dreg` | `d[0-31]` | `w` |

0 commit comments

Comments
 (0)