11
11
// LLVM says "instruction requires: armv6k"
12
12
#[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
13
13
#[ inline( always) ]
14
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
14
15
pub unsafe fn __wfi ( ) {
15
16
hint ( HINT_WFI ) ;
16
17
}
@@ -24,6 +25,7 @@ pub unsafe fn __wfi() {
24
25
// LLVM says "instruction requires: armv6k"
25
26
#[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
26
27
#[ inline( always) ]
28
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
27
29
pub unsafe fn __wfe ( ) {
28
30
hint ( HINT_WFE ) ;
29
31
}
@@ -36,6 +38,7 @@ pub unsafe fn __wfe() {
36
38
// LLVM says "instruction requires: armv6k"
37
39
#[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
38
40
#[ inline( always) ]
41
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
39
42
pub unsafe fn __sev ( ) {
40
43
hint ( HINT_SEV ) ;
41
44
}
@@ -52,6 +55,7 @@ pub unsafe fn __sev() {
52
55
doc,
53
56
) ) ]
54
57
#[ inline( always) ]
58
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
55
59
pub unsafe fn __sevl ( ) {
56
60
hint ( HINT_SEVL ) ;
57
61
}
@@ -65,6 +69,7 @@ pub unsafe fn __sevl() {
65
69
// LLVM says "instruction requires: armv6k"
66
70
#[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
67
71
#[ inline( always) ]
72
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
68
73
pub unsafe fn __yield ( ) {
69
74
hint ( HINT_YIELD ) ;
70
75
}
@@ -76,6 +81,7 @@ pub unsafe fn __yield() {
76
81
/// another instruction. It is not guaranteed that inserting this instruction
77
82
/// will increase execution time.
78
83
#[ inline( always) ]
84
+ #[ unstable( feature = "stdarch_arm_hints" , issue = "117218" ) ]
79
85
pub unsafe fn __nop ( ) {
80
86
crate :: arch:: asm!( "nop" , options( nomem, nostack, preserves_flags) ) ;
81
87
}
0 commit comments