Skip to content

Commit dfdadad

Browse files
committed
Ignore Atomic*::fetch_{min,max} tests on ARM
1 parent d1a541e commit dfdadad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/tests/atomic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ fn uint_xor() {
6060
}
6161

6262
#[test]
63+
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
6364
fn uint_min() {
6465
let x = AtomicUsize::new(0xf731);
6566
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
@@ -69,6 +70,7 @@ fn uint_min() {
6970
}
7071

7172
#[test]
73+
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
7274
fn uint_max() {
7375
let x = AtomicUsize::new(0x137f);
7476
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
@@ -106,6 +108,7 @@ fn int_xor() {
106108
}
107109

108110
#[test]
111+
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
109112
fn int_min() {
110113
let x = AtomicIsize::new(0xf731);
111114
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
@@ -115,6 +118,7 @@ fn int_min() {
115118
}
116119

117120
#[test]
121+
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
118122
fn int_max() {
119123
let x = AtomicIsize::new(0x137f);
120124
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);

0 commit comments

Comments
 (0)