Skip to content

Commit fd712fe

Browse files
committed
Fix test skip
1 parent 616cb6e commit fd712fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/core_simd/tests/ops_macros.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,11 @@ macro_rules! impl_float_tests {
514514
assert!(n_zero.simd_max(p_zero).to_array().iter().all(|x| *x == 0.));
515515
}
516516

517-
#[cfg(not(all(target_arch = "powerpc64", target_feature = "vsx")))]
518-
// https://gitlab.com/qemu-project/qemu/-/issues/1780
519517
fn simd_clamp<const LANES: usize>() {
518+
if cfg!(all(target_arch = "powerpc64", target_feature = "vsx")) {
519+
// https://gitlab.com/qemu-project/qemu/-/issues/1780
520+
return;
521+
}
520522
test_helpers::test_3(&|value: [Scalar; LANES], mut min: [Scalar; LANES], mut max: [Scalar; LANES]| {
521523
use test_helpers::subnormals::flush_in;
522524
for (min, max) in min.iter_mut().zip(max.iter_mut()) {

0 commit comments

Comments
 (0)