mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 20:28:33 +00:00
Ignore Atomic*::fetch_{min,max} tests on ARM
This commit is contained in:
parent
d1a541e342
commit
dfdadad228
@ -60,6 +60,7 @@ fn uint_xor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
|
||||||
fn uint_min() {
|
fn uint_min() {
|
||||||
let x = AtomicUsize::new(0xf731);
|
let x = AtomicUsize::new(0xf731);
|
||||||
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
|
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
|
||||||
@ -69,6 +70,7 @@ fn uint_min() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
|
||||||
fn uint_max() {
|
fn uint_max() {
|
||||||
let x = AtomicUsize::new(0x137f);
|
let x = AtomicUsize::new(0x137f);
|
||||||
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
|
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
|
||||||
@ -106,6 +108,7 @@ fn int_xor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
|
||||||
fn int_min() {
|
fn int_min() {
|
||||||
let x = AtomicIsize::new(0xf731);
|
let x = AtomicIsize::new(0xf731);
|
||||||
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
|
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
|
||||||
@ -115,6 +118,7 @@ fn int_min() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
|
||||||
fn int_max() {
|
fn int_max() {
|
||||||
let x = AtomicIsize::new(0x137f);
|
let x = AtomicIsize::new(0x137f);
|
||||||
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
|
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
|
||||||
|
Loading…
Reference in New Issue
Block a user