From fd712fe3f39470160baf95ff8eb6fb00ebf31453 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Sat, 22 Jul 2023 23:38:20 -0400 Subject: [PATCH] Fix test skip --- crates/core_simd/tests/ops_macros.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/core_simd/tests/ops_macros.rs b/crates/core_simd/tests/ops_macros.rs index a6d679867282..7b309df22cb7 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() { + 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()) {