Skip to content

Commit cb05739

Browse files
committed
Fix minor typos
Taken from rust-lang/rust#90086
1 parent 2c969f4 commit cb05739

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/inline-assembly.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Several types of operands are supported:
101101
- `<reg>` can refer to a register class or an explicit register.
102102
The allocated register name is substituted into the asm template string.
103103
- The allocated register will contain an undefined value at the start of the asm code.
104-
- `<expr>` must be a (possibly uninitialized) place expression, to which the contents of the allocated register is written to at the end of the asm code.
104+
- `<expr>` must be a (possibly uninitialized) place expression, to which the contents of the allocated register are written at the end of the asm code.
105105
- An underscore (`_`) may be specified instead of an expression, which will cause the contents of the register to be discarded at the end of the asm code (effectively acting as a clobber).
106106
* `lateout(<reg>) <expr>`
107107
- Identical to `out` except that the register allocator can reuse a register allocated to an `in`.
@@ -110,10 +110,10 @@ Several types of operands are supported:
110110
- `<reg>` can refer to a register class or an explicit register.
111111
The allocated register name is substituted into the asm template string.
112112
- The allocated register will contain the value of `<expr>` at the start of the asm code.
113-
- `<expr>` must be a mutable initialized place expression, to which the contents of the allocated register is written to at the end of the asm code.
113+
- `<expr>` must be a mutable initialized place expression, to which the contents of the allocated register are written at the end of the asm code.
114114
* `inout(<reg>) <in expr> => <out expr>`
115115
- Same as `inout` except that the initial value of the register is taken from the value of `<in expr>`.
116-
- `<out expr>` must be a (possibly uninitialized) place expression, to which the contents of the allocated register is written to at the end of the asm code.
116+
- `<out expr>` must be a (possibly uninitialized) place expression, to which the contents of the allocated register are written at the end of the asm code.
117117
- An underscore (`_`) may be specified instead of an expression for `<out expr>`, which will cause the contents of the register to be discarded at the end of the asm code (effectively acting as a clobber).
118118
- `<in expr>` and `<out expr>` may have different types.
119119
* `inlateout(<reg>) <expr>` / `inlateout(<reg>) <in expr> => <out expr>`
@@ -294,7 +294,8 @@ Some registers cannot be used for input or output operands:
294294

295295
In some cases LLVM will allocate a "reserved register" for `reg` operands even though this register cannot be explicitly specified.
296296
Assembly code making use of reserved registers should be careful since `reg` operands may alias with those registers.
297-
Reserved registers are the frame pointer and base pointer
297+
298+
These reserved registers are:
298299
- The frame pointer and LLVM base pointer on all architectures.
299300
- `r9` on ARM.
300301
- `x18` on AArch64.

0 commit comments

Comments
 (0)