mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-04 15:05:30 +00:00
* adds {s,u,f}{min,max}{v,p} AArch64 intrinsics
* adds {vmov}{n,l} ARM intrinsics
Closes #314 .
35 lines
792 B
Bash
Executable File
35 lines
792 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
# Tests are all super fast anyway, and they fault often enough on travis that
|
|
# having only one thread increases debuggability to be worth it.
|
|
export RUST_TEST_THREADS=1
|
|
#export RUST_BACKTRACE=1
|
|
#export RUST_TEST_NOCAPTURE=1
|
|
|
|
# FIXME(rust-lang-nursery/stdsimd#120) run-time feature detection for ARM Neon
|
|
case ${TARGET} in
|
|
aarch*)
|
|
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
FEATURES="strict,$FEATURES"
|
|
|
|
echo "RUSTFLAGS=${RUSTFLAGS}"
|
|
echo "FEATURES=${FEATURES}"
|
|
echo "OBJDUMP=${OBJDUMP}"
|
|
|
|
cargo_test() {
|
|
cmd="cargo test --target=$TARGET --features $FEATURES $1"
|
|
cmd="$cmd -p coresimd -p stdsimd --manifest-path crates/stdsimd/Cargo.toml"
|
|
cmd="$cmd -- $2"
|
|
$cmd
|
|
}
|
|
|
|
cargo_test
|
|
cargo_test "--release"
|