]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/inline_asm_x86_intel_syntax.txt
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
[rust.git] / src / tools / clippy / src / docs / inline_asm_x86_intel_syntax.txt
1 ### What it does
2 Checks for usage of Intel x86 assembly syntax.
3
4 ### Why is this bad?
5 The lint has been enabled to indicate a preference
6 for AT&T x86 assembly syntax.
7
8 ### Example
9
10 ```
11 asm!("lea {}, [{}]", lateout(reg) _, in(reg) ptr);
12 ```
13 Use instead:
14 ```
15 asm!("lea ({}), {}", in(reg) ptr, lateout(reg) _, options(att_syntax));
16 ```