Skip to content

Commit 785325f

Browse files
chorman0773joshtriplett
authored andcommitted
Remove .intel_syntax/.att_syntax support entirely.
1 parent d34284f commit 785325f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/inline-assembly.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -587,21 +587,17 @@ On targets with structured exception Handling, the following additional directiv
587587
##### x86 (32-bit and 64-bit)
588588

589589
On x86 targets, both 32-bit and 64-bit, the following additional directives are guaranteed to be supported:
590-
- `.att_syntax`
591-
- `.intel_syntax`
592590
- `.nops`
593591
- `.code16`
594592
- `.code32`
595593
- `.code64`
596594

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.
599-
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.
600595

601596
Use of `.code16`, `.code32`, and `.code64` directives are only supported if the state is reset to the default before exiting the assembly block.
602597
32-bit x86 uses `.code32` by default, and x86_64 uses `.code64` by default.
603598

604599

600+
605601
##### ARM (32-bit)
606602

607603
On ARM, the following additional directives are guaranteed to be supported:

0 commit comments

Comments
 (0)