Skip to content

Slice the test suite into vector classes. #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
88 changes: 48 additions & 40 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,58 @@ cargo_test() {
fi
}

cargo_test_impl() {
ORIGINAL_RUSTFLAGS=${RUSTFLAGS}
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v16 --cfg test_v32" cargo_test ${1}
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v64 --cfg test_v128" cargo_test ${1}
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v256 --cfg test_v512" cargo_test ${1}
RUSTFLAGS=${ORIGINAL_RUSTFLAGS}
}

case ${TARGET} in
x86_64-apple-ios)
# Note: this case must go before the catch-all "x86*" case below
export RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
rustc ./ci/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
export CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest

cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"
;;
i386-apple-ios)
export RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
rustc ./ci/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
export CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest

cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"
;;
i586*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

ORIGINAL_RUSFTFLAGS=${RUSTFLAGS}

export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+sse4.2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"
export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+avx2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS=${ORIGINAL_RUSFTFLAGS}
;;
i686*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

ORIGINAL_RUSFTFLAGS=${RUSTFLAGS}

export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+sse4.2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"

if [[ ${TARGET} != *"apple"* ]]; then
# Travis-CI apple build bots do not appear to support AVX2
export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+avx2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"
fi

export RUSTFLAGS=${ORIGINAL_RUSFTFLAGS}
Expand All @@ -95,79 +103,79 @@ case ${TARGET} in
exit 1
fi

cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

ORIGINAL_RUSFTFLAGS=${RUSTFLAGS}

export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+sse4.2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"

if [[ ${TARGET} != *"apple"* ]]; then
# Travis-CI apple build bots do not appear to support AVX2
export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+avx2"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"
fi

export RUSTFLAGS=${ORIGINAL_RUSFTFLAGS}
;;
armv7*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
cargo_test "--release --features=into_bits"
cargo_test "--release --features=into_bits,coresimd"
cargo_test_impl "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits,coresimd"
;;
arm*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+v7,+neon"
cargo_test "--release --features=into_bits"
cargo_test "--release --features=into_bits,coresimd"
cargo_test_impl "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits,coresimd"
;;
aarch64*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
cargo_test "--release --features=into_bits"
cargo_test "--release --features=into_bits,coresimd"
cargo_test_impl "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits,coresimd"
;;
mips64*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

# FIXME: this doesn't compile succesfully
# https://github.com/rust-lang-nursery/packed_simd/issues/18
#
# export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+msa -C target-cpu=mips64r6"
# cargo_test "--release --features=into_bits"
# cargo_test_impl "--release --features=into_bits"
;;
powerpc-*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+altivec"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"
;;
powerpc64-*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"

ORIGINAL_RUSFTFLAGS=${RUSTFLAGS}

export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+altivec"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"
export RUSTFLAGS="${ORIGINAL_RUSTFLAGS} -C target-feature=+vsx"
cargo_test "--release --features=into_bits"
cargo_test_impl "--release --features=into_bits"

export RUSTFLAGS=${ORIGINAL_RUSFTFLAGS}
;;
*)
cargo_test
cargo_test "--release --features=into_bits"
cargo_test_impl
cargo_test_impl "--release --features=into_bits"
;;
esac

Expand Down
Loading