@@ -60,7 +60,7 @@ fn uint_xor() {
6060}
6161
6262#[ 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
6464fn uint_min ( ) {
6565 let x = AtomicUsize :: new ( 0xf731 ) ;
6666 assert_eq ! ( x. fetch_min( 0x137f , SeqCst ) , 0xf731 ) ;
@@ -70,7 +70,7 @@ fn uint_min() {
7070}
7171
7272#[ 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
7474fn uint_max ( ) {
7575 let x = AtomicUsize :: new ( 0x137f ) ;
7676 assert_eq ! ( x. fetch_max( 0xf731 , SeqCst ) , 0x137f ) ;
@@ -108,7 +108,7 @@ fn int_xor() {
108108}
109109
110110#[ 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
112112fn int_min ( ) {
113113 let x = AtomicIsize :: new ( 0xf731 ) ;
114114 assert_eq ! ( x. fetch_min( 0x137f , SeqCst ) , 0xf731 ) ;
@@ -118,7 +118,7 @@ fn int_min() {
118118}
119119
120120#[ 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
122122fn int_max ( ) {
123123 let x = AtomicIsize :: new ( 0x137f ) ;
124124 assert_eq ! ( x. fetch_max( 0xf731 , SeqCst ) , 0x137f ) ;
0 commit comments