We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a407a8 commit 3a5187aCopy full SHA for 3a5187a
tests/ui/stats/input-stats.rs
@@ -1,6 +1,7 @@
1
//@ check-pass
2
//@ compile-flags: -Zinput-stats
3
//@ only-64bit
4
+//@ needs-asm-support
5
// layout randomization affects the hir stat output
6
//@ needs-deterministic-layouts
7
//
@@ -49,5 +50,7 @@ fn main() {
49
50
_ => {}
51
}
52
- unsafe { asm!("mov rdi, 1"); }
53
+ // NOTE(workingjubilee): do GPUs support NOPs? remove this cfg if they do
54
+ #[cfg(not(any(target_arch = "nvptx64", target_arch = "spirv", target_arch = "amdgpu")))]
55
+ unsafe { asm!("nop"); }
56
0 commit comments