We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66bea6 commit 5b8f1a1Copy full SHA for 5b8f1a1
src/inline-assembly.md
@@ -17,6 +17,7 @@ The compiler will emit an error if `asm!` is used on an unsupported target.
17
## Example
18
19
```rust
20
+# #[cfg(target_arch = "x86_64")] {
21
use std::arch::asm;
22
23
// Multiply x by 6 using shifts and adds
@@ -32,6 +33,7 @@ unsafe {
32
33
);
34
}
35
assert_eq!(x, 4 * 6);
36
+# }
37
```
38
39
## Syntax
0 commit comments