2021-04-13 18:11:11 +01:00
|
|
|
// only-x86_64
|
|
|
|
// assembly-output: emit-asm
|
|
|
|
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
|
|
|
|
|
2021-10-27 18:37:18 +01:00
|
|
|
#![feature(global_asm, asm_const)]
|
2021-04-13 18:11:11 +01:00
|
|
|
#![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));
|