You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/inline-assembly.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Several types of operands are supported:
101
101
-`<reg>` can refer to a register class or an explicit register.
102
102
The allocated register name is substituted into the asm template string.
103
103
- 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.
105
105
- 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).
106
106
*`lateout(<reg>) <expr>`
107
107
- 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:
110
110
-`<reg>` can refer to a register class or an explicit register.
111
111
The allocated register name is substituted into the asm template string.
112
112
- 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.
114
114
*`inout(<reg>) <in expr> => <out expr>`
115
115
- 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.
117
117
- 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).
118
118
-`<in expr>` and `<out expr>` may have different types.
0 commit comments