@@ -4,21 +4,20 @@ Date: Sun, 25 Jul 2021 18:39:31 +0200
4
4
Subject: [PATCH] Disable unsupported tests
5
5
6
6
---
7
- crates/core_simd/src/array.rs | 2 ++
8
- crates/core_simd/src/lib.rs | 2 +-
7
+ crates/core_simd/src/vector.rs | 2 ++
9
8
crates/core_simd/src/math.rs | 4 ++++
10
9
crates/core_simd/tests/masks.rs | 12 ------------
11
10
crates/core_simd/tests/ops_macros.rs | 6 ++++++
12
11
crates/core_simd/tests/round.rs | 2 ++
13
12
6 files changed, 15 insertions(+), 13 deletions(-)
14
13
15
- diff --git a/crates/core_simd/src/array .rs b/crates/core_simd/src/array .rs
14
+ diff --git a/crates/core_simd/src/vector .rs b/crates/core_simd/src/vector .rs
16
15
index 25c5309..2b3d819 100644
17
- --- a/crates/core_simd/src/array .rs
18
- +++ b/crates/core_simd/src/array .rs
16
+ --- a/crates/core_simd/src/vector .rs
17
+ +++ b/crates/core_simd/src/vector .rs
19
18
@@ -22,6 +22,7 @@ where
20
- #[must_use]
21
- fn splat(val: Self::Scalar) -> Self;
19
+ self.0
20
+ }
22
21
23
22
+ /*
24
23
/// SIMD gather: construct a SIMD vector by reading from a slice, using potentially discontiguous indices.
@@ -31,27 +30,14 @@ index 25c5309..2b3d819 100644
31
30
+ */
32
31
}
33
32
34
- macro_rules! impl_simdarray_for {
35
- diff --git a/crates/core_simd/src/lib.rs b/crates/core_simd/src/lib.rs
36
- index a64904d..299eb11 100644
37
- --- a/crates/core_simd/src/lib.rs
38
- +++ b/crates/core_simd/src/lib.rs
39
- @@ -1,7 +1,7 @@
40
- #![no_std]
41
- #![allow(incomplete_features)]
42
- #![feature(
43
- - const_generics,
44
- + const_generics,
45
- platform_intrinsics,
46
- repr_simd,
47
- simd_ffi,
33
+ impl<T, const LANES: usize> Copy for Simd<T, LANES>
48
34
diff --git a/crates/core_simd/src/math.rs b/crates/core_simd/src/math.rs
49
35
index 7290a28..e394730 100644
50
36
--- a/crates/core_simd/src/math.rs
51
37
+++ b/crates/core_simd/src/math.rs
52
38
@@ -2,6 +2,7 @@ macro_rules! impl_uint_arith {
53
- ($(($name:ident, $n:ident) ),+) => {
54
- $( impl<const LANES: usize> $name< LANES> where Self: crate::LanesAtMost32 {
39
+ ($($ty:ty ),+) => {
40
+ $( impl<const LANES: usize> Simd<$ty, LANES> where LaneCount<LANES>: SupportedLaneCount {
55
41
56
42
+ /*
57
43
/// Lanewise saturating add.
@@ -66,8 +52,8 @@ index 7290a28..e394730 100644
66
52
}
67
53
}
68
54
@@ -46,6 +48,7 @@ macro_rules! impl_int_arith {
69
- ($(($name:ident, $n:ident) ),+) => {
70
- $( impl<const LANES: usize> $name< LANES> where Self: crate::LanesAtMost32 {
55
+ ($($ty:ty ),+) => {
56
+ $( impl<const LANES: usize> Simd<$ty, LANES> where LaneCount<LANES>: SupportedLaneCount {
71
57
72
58
+ /*
73
59
/// Lanewise saturating add.
@@ -85,21 +71,22 @@ diff --git a/crates/core_simd/tests/masks.rs b/crates/core_simd/tests/masks.rs
85
71
index 61d8e44..2bccae2 100644
86
72
--- a/crates/core_simd/tests/masks.rs
87
73
+++ b/crates/core_simd/tests/masks.rs
88
- @@ -67,18 +67,6 @@ macro_rules! test_mask_api {
74
+ @@ -67,19 +67,6 @@ macro_rules! test_mask_api {
89
75
assert_eq!(int.to_array(), [-1, 0, 0, -1, 0, 0, -1, 0]);
90
- assert_eq!(core_simd::$name ::<8>::from_int(int), mask);
76
+ assert_eq!(core_simd::Mask ::<$type, 8>::from_int(int), mask);
91
77
}
92
78
-
79
+ - #[cfg(feature = "generic_const_exprs")]
93
80
- #[test]
94
81
- fn roundtrip_bitmask_conversion() {
95
82
- let values = [
96
83
- true, false, false, true, false, false, true, false,
97
84
- true, true, false, false, false, false, false, true,
98
85
- ];
99
- - let mask = core_simd::$name ::<16>::from_array(values);
86
+ - let mask = core_simd::Mask ::<$type, 16>::from_array(values);
100
87
- let bitmask = mask.to_bitmask();
101
88
- assert_eq!(bitmask, [0b01001001, 0b10000011]);
102
- - assert_eq!(core_simd::$name ::<16>::from_bitmask(bitmask), mask);
89
+ - assert_eq!(core_simd::Mask ::<$type, 16>::from_bitmask(bitmask), mask);
103
90
- }
104
91
}
105
92
}
@@ -122,7 +109,7 @@ index cb39e73..fc0ebe1 100644
122
109
}
123
110
+ */
124
111
125
- fn sqrt <const LANES: usize>() {
112
+ fn recip <const LANES: usize>() {
126
113
test_helpers::test_unary_elementwise(
127
114
@@ -581,6 +585,7 @@ macro_rules! impl_float_tests {
128
115
});
@@ -138,8 +125,8 @@ index cb39e73..fc0ebe1 100644
138
125
}
139
126
+ */
140
127
}
141
- }
142
- }
128
+
129
+ #[cfg(feature = "std")]
143
130
diff --git a/crates/core_simd/tests/round.rs b/crates/core_simd/tests/round.rs
144
131
index 37044a7..4cdc6b7 100644
145
132
--- a/crates/core_simd/tests/round.rs
0 commit comments