From 785325fed7d7d54ab143b32355f35df1f5208295 Mon Sep 17 00:00:00 2001 From: Connor Horman Date: Wed, 2 Mar 2022 16:23:23 -0500 Subject: [PATCH] Remove `.intel_syntax`/`.att_syntax` support entirely. --- src/inline-assembly.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/inline-assembly.md b/src/inline-assembly.md index 3279b07fd..243887b96 100644 --- a/src/inline-assembly.md +++ b/src/inline-assembly.md @@ -587,21 +587,17 @@ On targets with structured exception Handling, the following additional directiv ##### x86 (32-bit and 64-bit) On x86 targets, both 32-bit and 64-bit, the following additional directives are guaranteed to be supported: -- `.att_syntax` -- `.intel_syntax` - `.nops` - `.code16` - `.code32` - `.code64` -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). -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. -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. Use of `.code16`, `.code32`, and `.code64` directives are only supported if the state is reset to the default before exiting the assembly block. 32-bit x86 uses `.code32` by default, and x86_64 uses `.code64` by default. + ##### ARM (32-bit) On ARM, the following additional directives are guaranteed to be supported: