diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2023-07-22 23:38:20 -0400 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2023-07-22 23:38:20 -0400 |
| commit | fd712fe3f39470160baf95ff8eb6fb00ebf31453 (patch) | |
| tree | ba6cd548181dda7f74b2e6e522eb2618550a17c2 | |
| parent | 616cb6e9e6de58dd9409d815078451ee550fb946 (diff) | |
| download | rust-fd712fe3f39470160baf95ff8eb6fb00ebf31453.tar.gz rust-fd712fe3f39470160baf95ff8eb6fb00ebf31453.zip | |
Fix test skip
| -rw-r--r-- | crates/core_simd/tests/ops_macros.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/core_simd/tests/ops_macros.rs b/crates/core_simd/tests/ops_macros.rs index a6d67986728..7b309df22cb 100644 --- a/crates/core_simd/tests/ops_macros.rs +++ b/crates/core_simd/tests/ops_macros.rs @@ -514,9 +514,11 @@ macro_rules! impl_float_tests { assert!(n_zero.simd_max(p_zero).to_array().iter().all(|x| *x == 0.)); } - #[cfg(not(all(target_arch = "powerpc64", target_feature = "vsx")))] - // https://gitlab.com/qemu-project/qemu/-/issues/1780 fn simd_clamp<const LANES: usize>() { + if cfg!(all(target_arch = "powerpc64", target_feature = "vsx")) { + // https://gitlab.com/qemu-project/qemu/-/issues/1780 + return; + } test_helpers::test_3(&|value: [Scalar; LANES], mut min: [Scalar; LANES], mut max: [Scalar; LANES]| { use test_helpers::subnormals::flush_in; for (min, max) in min.iter_mut().zip(max.iter_mut()) { |
