File tree Expand file tree Collapse file tree 6 files changed +16
-6
lines changed Expand file tree Collapse file tree 6 files changed +16
-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_sde"
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.4.0"
32
32
33
33
[features ]
34
34
strict = []
35
+ intel_sde = []
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 \
@@ -31,5 +32,5 @@ if [ -z "$1" ]; then
31
32
run $d
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 @@ -15,7 +15,10 @@ case ${TARGET} in
15
15
;;
16
16
esac
17
17
18
+ FEATURES=" strict,$FEATURES "
19
+
18
20
echo " RUSTFLAGS=${RUSTFLAGS} "
21
+ echo " FEATURES=${FEATURES} "
19
22
20
- cargo test --target $TARGET --features " strict "
21
- cargo test --release --target $TARGET --features " strict "
23
+ cargo test --target $TARGET --features $FEATURES
24
+ cargo test --release --target $TARGET --features $FEATURES
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ pub use self::avx2::*;
16
16
pub use self :: abm:: * ;
17
17
pub use self :: bmi:: * ;
18
18
pub use self :: bmi2:: * ;
19
+
20
+ #[ cfg( not( feature = "intel_sde" ) ) ]
19
21
pub use self :: tbm:: * ;
20
22
21
23
pub use self :: runtime:: { __unstable_detect_feature, __Feature} ;
@@ -48,4 +50,6 @@ mod avx2;
48
50
mod abm;
49
51
mod bmi;
50
52
mod bmi2;
53
+
54
+ #[ cfg( not( feature = "intel_sde" ) ) ]
51
55
mod tbm;
Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ mod tests {
377
377
assert_eq ! ( a, b) ;
378
378
}
379
379
380
+ #[ cfg( not( feature = "intel_sde" ) ) ]
380
381
#[ simd_test = "xsaves" ]
381
382
unsafe fn xsaves ( ) {
382
383
let m = 0xFFFFFFFFFFFFFFFF_u64 ; //< all registers
@@ -389,7 +390,7 @@ mod tests {
389
390
assert_eq ! ( a, b) ;
390
391
}
391
392
392
- #[ cfg( not( target_arch = "x86" ) ) ]
393
+ #[ cfg( not( any ( target_arch = "x86" , feature = "intel_sde" ) ) ) ]
393
394
#[ simd_test = "xsaves" ]
394
395
unsafe fn xsaves64 ( ) {
395
396
let m = 0xFFFFFFFFFFFFFFFF_u64 ; //< all registers
You can’t perform that action at this time.
0 commit comments