Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ cargo_test() {

cargo_test
cargo_test "--release"

# Test x86 targets compiled with AVX.
case ${TARGET} in
x86*)
RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
cargo_test "--release"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll somehow need to disable all the assert_instr tests as well as anything beneath avx is likely to generate different instructions with avx enabled

;;
*)
;;
esac
26 changes: 2 additions & 24 deletions coresimd/ppsv/api/masks_reductions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,15 @@ macro_rules! impl_mask_reductions {
($id:ident) => {
impl $id {
/// Are `all` vector lanes `true`?
#[cfg(not(target_arch = "aarch64"))]
#[inline]
pub fn all(self) -> bool {
use coresimd::simd_llvm::simd_reduce_all;
unsafe { simd_reduce_all(self) }
unsafe { super::codegen::masks_reductions::All::all(self) }
}
/// Are `all` vector lanes `true`?
#[cfg(target_arch = "aarch64")]
#[inline]
pub fn all(self) -> bool {
// FIXME: Broken on AArch64
// https://bugs.llvm.org/show_bug.cgi?id=36796
self.and()
}

/// Is `any` vector lanes `true`?
#[cfg(not(target_arch = "aarch64"))]
#[inline]
pub fn any(self) -> bool {
use coresimd::simd_llvm::simd_reduce_any;
unsafe { simd_reduce_any(self) }
unsafe { super::codegen::masks_reductions::Any::any(self) }
}
/// Is `any` vector lanes `true`?
#[cfg(target_arch = "aarch64")]
#[inline]
pub fn any(self) -> bool {
// FIXME: Broken on AArch64
// https://bugs.llvm.org/show_bug.cgi?id=36796
self.or()
}

/// Are `all` vector lanes `false`?
#[inline]
pub fn none(self) -> bool {
Expand Down
Loading