Skip to content

Commit bcd134f

Browse files
chorman0773joshtriplett
authored andcommitted
Add note about operand interpolations
1 parent 82aad01 commit bcd134f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inline-assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ On x86, the following additional directives are guaranteed to be supported:
594594
- `.intel_syntax`
595595
- `.nops`
596596

597-
Use of the `.att_syntax` and `.intel_syntax` with no parameters is supported, but the syntax must be restored to the option at entry (`.intel_syntax` without the `att_syntax` asm option, or `.att_syntax` with that option) or the behaviour is undefined (the output of the compiler may be corrupted as a result). Use of `.att_syntax` and `.intel_syntax` with an option (such as `.intel_syntax prefix` or `.att_syntax noprefix`) is unsupported and results in assembler-dependant behaviour.
597+
Use of the `.att_syntax` and `.intel_syntax` with no parameters is supported, but the syntax must be restored to the option at entry (`.intel_syntax` without the `att_syntax` asm option, or `.att_syntax` with that option) or the behaviour is undefined (the output of the compiler may be corrupted as a result). Use of `.att_syntax` and `.intel_syntax` with an option (such as `.intel_syntax prefix` or `.att_syntax noprefix`) is unsupported and results in assembler-dependant behaviour. If operand interpolations are used between setting the syntax mode with one of these directives, and restoring it to the block's default, the behaviour is undefined.
598598

599599
On x86 for `global_asm!` only, the following additional directives are guaranteed to be supported:
600600
- `.code16`

0 commit comments

Comments
 (0)