Skip to content

Commit d34284f

Browse files
chorman0773joshtriplett
authored andcommitted
Fix .intel_syntax directive
1 parent 9d289c0 commit d34284f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inline-assembly.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ On x86 targets, both 32-bit and 64-bit, the following additional directives are
594594
- `.code32`
595595
- `.code64`
596596

597-
Use of the `.att_syntax` and `.intel_syntax` directives with no parameters (or with parameters equivalent to the defaults) 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 behavior is undefined (the compiled output may be corrupted as a result).
598-
Use of `.att_syntax` and `.intel_syntax` with a non-default option (such as `.intel_syntax prefix` or `.att_syntax noprefix`) is unsupported.
597+
Use of the `.att_syntax` and `.intel_syntax` directives with the default parameters (`prefix` for `.att_syntax`, `noprefix` for `.intel_syntax`) is supported, but the syntax must be restored to the option at entry (`.intel_syntax noprefix` without the `att_syntax` asm option, or `.att_syntax prefix` with that option) or the behavior is undefined (the compiled output may be corrupted as a result).
598+
Use of `.att_syntax` and `.intel_syntax` with a non-default option or without an option (such as `.intel_syntax prefix` or `.att_syntax noprefix`) is unsupported, and has assembler specific behaviour.
599599
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.
600600

601601
Use of `.code16`, `.code32`, and `.code64` directives are only supported if the state is reset to the default before exiting the assembly block.

0 commit comments

Comments
 (0)