6
6
#[ cfg( target_arch = "x86" ) ]
7
7
#[ inline( always) ]
8
8
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
9
+ #[ rustc_deprecated( since = "1.28.0" , reason = "See issue #51810 - use inline assembly instead" ) ]
10
+ #[ doc( hidden) ]
9
11
pub unsafe fn __readeflags ( ) -> u32 {
10
12
let eflags: u32 ;
11
13
asm ! ( "pushfd; popl $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -18,6 +20,8 @@ pub unsafe fn __readeflags() -> u32 {
18
20
#[ cfg( target_arch = "x86_64" ) ]
19
21
#[ inline( always) ]
20
22
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
23
+ #[ rustc_deprecated( since = "1.28.0" , reason = "See issue #51810 - use inline assembly instead" ) ]
24
+ #[ doc( hidden) ]
21
25
pub unsafe fn __readeflags ( ) -> u64 {
22
26
let eflags: u64 ;
23
27
asm ! ( "pushfq; popq $0" : "=r" ( eflags) : : : "volatile" ) ;
@@ -29,7 +33,9 @@ pub unsafe fn __readeflags() -> u64 {
29
33
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=__writeeflags)
30
34
#[ cfg( target_arch = "x86" ) ]
31
35
#[ inline( always) ]
32
- #[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
36
+ #[ stable( feature = "simd_x86" , since = "1.27.0" , reason = "See issue #51810 - use inline assembly instead" ) ]
37
+ #[ rustc_deprecated( since = "1.28.0" ) ]
38
+ #[ doc( hidden) ]
33
39
pub unsafe fn __writeeflags ( eflags : u32 ) {
34
40
asm ! ( "pushl $0; popfd" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
35
41
}
@@ -39,7 +45,9 @@ pub unsafe fn __writeeflags(eflags: u32) {
39
45
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=__writeeflags)
40
46
#[ cfg( target_arch = "x86_64" ) ]
41
47
#[ inline( always) ]
42
- #[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
48
+ #[ stable( feature = "simd_x86" , since = "1.27.0" , reason = "See issue #51810 - use inline assembly instead" ) ]
49
+ #[ rustc_deprecated( since = "1.28.0" ) ]
50
+ #[ doc( hidden) ]
43
51
pub unsafe fn __writeeflags ( eflags : u64 ) {
44
52
asm ! ( "pushq $0; popfq" : : "r" ( eflags) : "cc" , "flags" : "volatile" ) ;
45
53
}
0 commit comments