]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/llvm-asm/llvm-asm-out-assign.rs
4 #![allow(deprecated)] // llvm_asm!s
6 #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
10 // Treat the output as initialization.
11 llvm_asm
!("mov $1, $0" : "=r"(x
) : "r"(5_usize
));
19 // Assignment to mutable.
20 llvm_asm
!("mov $1, $0" : "=r"(x
) : "r"(x
+ 7));
25 #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]