File tree 6 files changed +14
-6
lines changed
6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 8
8
- env : TARGET=i586-unknown-linux-gnu
9
9
- env : TARGET=i686-unknown-linux-gnu
10
10
- 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"
12
12
- env : TARGET=arm-unknown-linux-gnueabihf
13
13
- env : TARGET=armv7-unknown-linux-gnueabihf
14
14
- env : TARGET=aarch64-unknown-linux-gnu
@@ -33,7 +33,7 @@ install:
33
33
34
34
script :
35
35
- cargo generate-lockfile
36
- - ci/run-docker.sh $TARGET
36
+ - ci/run-docker.sh $TARGET $FEATURES
37
37
38
38
notifications :
39
39
email :
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ cupid = "0.3"
32
32
33
33
[features ]
34
34
strict = []
35
+ intel = []
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ run() {
16
16
--env CARGO_HOME=/cargo \
17
17
--volume ` rustc --print sysroot` :/rust:ro \
18
18
--env TARGET=$target \
19
+ --env FEATURES=$2 \
19
20
--env STDSIMD_TEST_EVERYTHING \
20
21
--volume ` pwd` :/checkout:ro \
21
22
--volume ` pwd` /target:/checkout/target \
@@ -28,8 +29,8 @@ run() {
28
29
29
30
if [ -z " $1 " ]; then
30
31
for d in ` ls ci/docker/` ; do
31
- run $d
32
+ run $d " strict "
32
33
done
33
34
else
34
- run $1
35
+ run $1 $2
35
36
fi
Original file line number Diff line number Diff line change 17
17
18
18
echo " RUSTFLAGS=${RUSTFLAGS} "
19
19
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 {
358
358
// ranges 0:7 and 8:15 are at most in range [0, 64). This macro
359
359
// expands all 16 bit integers whose bits in 0:7 and 8:15 are in
360
360
// that range. This results in 4096 (64 * 64) match arms.
361
+ #[ cfg( not( feature = "intel" ) ) ]
361
362
macro_rules! constify_bextri2 {
362
363
( $v: expr, $expand: ident) => {
363
364
#[ 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::*;
12
12
pub use self :: abm:: * ;
13
13
pub use self :: bmi:: * ;
14
14
pub use self :: bmi2:: * ;
15
+
16
+ #[ cfg( not( feature = "intel" ) ) ]
15
17
pub use self :: tbm:: * ;
16
18
17
19
pub use self :: runtime:: { __unstable_detect_feature, __Feature} ;
@@ -40,4 +42,5 @@ mod avx2;
40
42
mod abm;
41
43
mod bmi;
42
44
mod bmi2;
45
+ #[ cfg( not( feature = "intel" ) ) ]
43
46
mod tbm;
You can’t perform that action at this time.
0 commit comments