]> git.lizzy.rs Git - rust.git/blob - src/test/assembly/asm/global_asm.rs
Added docs to internal_macro const
[rust.git] / src / test / assembly / asm / global_asm.rs
1 // min-llvm-version: 10.0.1
2 // only-x86_64
3 // assembly-output: emit-asm
4 // compile-flags: -C llvm-args=--x86-asm-syntax=intel
5
6 #![feature(asm, global_asm)]
7 #![crate_type = "rlib"]
8
9 // CHECK: mov eax, eax
10 global_asm!("mov eax, eax");
11 // CHECK: mov ebx, 5
12 global_asm!("mov ebx, {}", const 5);
13 // CHECK: mov ecx, 5
14 global_asm!("movl ${}, %ecx", const 5, options(att_syntax));