summary refs log tree commit diff
path: root/src/test/assembly/asm/global_asm.rs
blob: 7e48c386abcde7cc978b0e5ef4653413e00a8601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// only-x86_64
// assembly-output: emit-asm
// compile-flags: -C llvm-args=--x86-asm-syntax=intel

#![feature(global_asm, asm_const)]
#![crate_type = "rlib"]

// CHECK: mov eax, eax
global_asm!("mov eax, eax");
// CHECK: mov ebx, 5
global_asm!("mov ebx, {}", const 5);
// CHECK: mov ecx, 5
global_asm!("movl ${}, %ecx", const 5, options(att_syntax));