File tree Expand file tree Collapse file tree 6 files changed +14
-6
lines changed
Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 88 - env : TARGET=i586-unknown-linux-gnu
99 - env : TARGET=i686-unknown-linux-gnu
1010 - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
11- - env : TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1 STDSIMD_TEST_EVERYTHING=1
11+ - env : TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1 STDSIMD_TEST_EVERYTHING=1 FEATURES="intel"
1212 - env : TARGET=arm-unknown-linux-gnueabihf
1313 - env : TARGET=armv7-unknown-linux-gnueabihf
1414 - env : TARGET=aarch64-unknown-linux-gnu
@@ -33,7 +33,7 @@ install:
3333
3434script :
3535 - cargo generate-lockfile
36- - ci/run-docker.sh $TARGET
36+ - ci/run-docker.sh $TARGET $FEATURES
3737
3838notifications :
3939 email :
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ cupid = "0.3"
3232
3333[features ]
3434strict = []
35+ intel = []
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ run() {
1616 --env CARGO_HOME=/cargo \
1717 --volume ` rustc --print sysroot` :/rust:ro \
1818 --env TARGET=$target \
19+ --env FEATURES=$2 \
1920 --env STDSIMD_TEST_EVERYTHING \
2021 --volume ` pwd` :/checkout:ro \
2122 --volume ` pwd` /target:/checkout/target \
@@ -28,8 +29,8 @@ run() {
2829
2930if [ -z " $1 " ]; then
3031 for d in ` ls ci/docker/` ; do
31- run $d
32+ run $d " strict "
3233 done
3334else
34- run $1
35+ run $1 $2
3536fi
Original file line number Diff line number Diff line change 1717
1818echo " RUSTFLAGS=${RUSTFLAGS} "
1919
20- cargo test --target $TARGET --features " strict"
21- cargo test --release --target $TARGET --features " strict"
20+ FEATURES=" strict,$FEATURES "
21+
22+ cargo test --target $TARGET --features $FEATURES --verbose -- --nocapture
23+ cargo test --release --target $TARGET --features $FEATURES --verbose -- --nocapture
Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ macro_rules! assert_approx_eq {
358358// ranges 0:7 and 8:15 are at most in range [0, 64). This macro
359359// expands all 16 bit integers whose bits in 0:7 and 8:15 are in
360360// that range. This results in 4096 (64 * 64) match arms.
361+ #[ cfg( not( feature = "intel" ) ) ]
361362macro_rules! constify_bextri2 {
362363 ( $v: expr, $expand: ident) => {
363364 #[ cfg_attr( feature = "cargo-clippy" , allow( unreadable_literal) ) ]
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ pub use self::avx2::*;
1212pub use self :: abm:: * ;
1313pub use self :: bmi:: * ;
1414pub use self :: bmi2:: * ;
15+
16+ #[ cfg( not( feature = "intel" ) ) ]
1517pub use self :: tbm:: * ;
1618
1719pub use self :: runtime:: { __unstable_detect_feature, __Feature} ;
@@ -40,4 +42,5 @@ mod avx2;
4042mod abm;
4143mod bmi;
4244mod bmi2;
45+ #[ cfg( not( feature = "intel" ) ) ]
4346mod tbm;
You can’t perform that action at this time.
0 commit comments