2016-07-06 14:54:31 +02:00
|
|
|
// ignore-android
|
|
|
|
// ignore-arm
|
|
|
|
// ignore-aarch64
|
2016-09-09 23:00:23 +02:00
|
|
|
// ignore-s390x
|
2017-01-17 08:10:00 +01:00
|
|
|
// ignore-emscripten
|
2017-02-22 15:46:22 +01:00
|
|
|
// ignore-powerpc
|
2018-06-06 00:12:00 +02:00
|
|
|
// ignore-powerpc64
|
|
|
|
// ignore-powerpc64le
|
2020-05-20 18:35:47 +02:00
|
|
|
// ignore-riscv64
|
2017-08-04 02:19:19 +02:00
|
|
|
// ignore-sparc
|
2018-06-04 13:27:32 +02:00
|
|
|
// ignore-sparc64
|
2018-03-09 11:15:45 +01:00
|
|
|
// ignore-mips
|
|
|
|
// ignore-mips64
|
2021-05-01 13:36:48 +02:00
|
|
|
// ignore-e2k64
|
2016-07-06 14:54:31 +02:00
|
|
|
|
2020-02-14 17:54:40 +01:00
|
|
|
#![feature(llvm_asm)]
|
2016-07-06 14:54:31 +02:00
|
|
|
|
|
|
|
#[cfg(any(target_arch = "x86",
|
|
|
|
target_arch = "x86_64"))]
|
2018-10-31 00:18:11 +01:00
|
|
|
|
2016-07-06 14:54:31 +02:00
|
|
|
pub fn main() {
|
|
|
|
unsafe {
|
|
|
|
// clobber formatted as register input/output
|
2020-02-14 17:54:40 +01:00
|
|
|
llvm_asm!("xor %eax, %eax" : : : "{eax}");
|
2016-07-06 14:54:31 +02:00
|
|
|
//~^ ERROR clobber should not be surrounded by braces
|
|
|
|
}
|
|
|
|
}
|