@@ -60,7 +60,7 @@ fn uint_xor() {
60
60
}
61
61
62
62
#[ test]
63
- #[ cfg( not( target_arch = "arm" ) ) ] // Missing intrinsic in compiler-builtins
63
+ #[ cfg( any ( not( target_arch = "arm" ) , target_os = "linux ") ) ] // Missing intrinsic in compiler-builtins
64
64
fn uint_min ( ) {
65
65
let x = AtomicUsize :: new ( 0xf731 ) ;
66
66
assert_eq ! ( x. fetch_min( 0x137f , SeqCst ) , 0xf731 ) ;
@@ -70,7 +70,7 @@ fn uint_min() {
70
70
}
71
71
72
72
#[ test]
73
- #[ cfg( not( target_arch = "arm" ) ) ] // Missing intrinsic in compiler-builtins
73
+ #[ cfg( any ( not( target_arch = "arm" ) , target_os = "linux ") ) ] // Missing intrinsic in compiler-builtins
74
74
fn uint_max ( ) {
75
75
let x = AtomicUsize :: new ( 0x137f ) ;
76
76
assert_eq ! ( x. fetch_max( 0xf731 , SeqCst ) , 0x137f ) ;
@@ -108,7 +108,7 @@ fn int_xor() {
108
108
}
109
109
110
110
#[ test]
111
- #[ cfg( not( target_arch = "arm" ) ) ] // Missing intrinsic in compiler-builtins
111
+ #[ cfg( any ( not( target_arch = "arm" ) , target_os = "linux ") ) ] // Missing intrinsic in compiler-builtins
112
112
fn int_min ( ) {
113
113
let x = AtomicIsize :: new ( 0xf731 ) ;
114
114
assert_eq ! ( x. fetch_min( 0x137f , SeqCst ) , 0xf731 ) ;
@@ -118,7 +118,7 @@ fn int_min() {
118
118
}
119
119
120
120
#[ test]
121
- #[ cfg( not( target_arch = "arm" ) ) ] // Missing intrinsic in compiler-builtins
121
+ #[ cfg( any ( not( target_arch = "arm" ) , target_os = "linux ") ) ] // Missing intrinsic in compiler-builtins
122
122
fn int_max ( ) {
123
123
let x = AtomicIsize :: new ( 0x137f ) ;
124
124
assert_eq ! ( x. fetch_max( 0xf731 , SeqCst ) , 0x137f ) ;
0 commit comments