@@ -11,44 +11,6 @@ Subject: [PATCH] Disable unsupported tests
11
11
crates/core_simd/tests/masks.rs | 3 ---
12
12
5 files changed, 20 insertions(+), 3 deletions(-)
13
13
14
- diff --git a/crates/core_simd/src/masks/full_masks.rs b/crates/core_simd/src/masks/full_masks.rs
15
- index adf0fcb..e7e657e 100644
16
- --- a/crates/core_simd/src/masks/full_masks.rs
17
- +++ b/crates/core_simd/src/masks/full_masks.rs
18
- @@ -180,6 +180,7 @@ where
19
- super::Mask<T, LANES>: ToBitMaskArray,
20
- [(); <super::Mask<T, LANES> as ToBitMaskArray>::BYTES]: Sized,
21
- {
22
- + /*
23
- assert_eq!(<super::Mask<T, LANES> as ToBitMaskArray>::BYTES, N);
24
-
25
- // Safety: N is the correct bitmask size
26
- @@ -202,6 +203,8 @@ where
27
- Self::splat(false).to_int(),
28
- ))
29
- }
30
- + */
31
- + panic!();
32
- }
33
-
34
- #[inline]
35
- @@ -225,6 +228,7 @@ where
36
- where
37
- super::Mask<T, LANES>: ToBitMask<BitMask = U>,
38
- {
39
- + /*
40
- // LLVM assumes bit order should match endianness
41
- let bitmask = if cfg!(target_endian = "big") {
42
- bitmask.reverse_bits(LANES)
43
- @@ -240,6 +244,8 @@ where
44
- Self::splat(false).to_int(),
45
- ))
46
- }
47
- + */
48
- + panic!();
49
- }
50
-
51
- #[inline]
52
14
diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs
53
15
index e8e8f68..7173c24 100644
54
16
--- a/crates/core_simd/src/vector.rs
@@ -69,31 +31,5 @@ index e8e8f68..7173c24 100644
69
31
}
70
32
71
33
impl<T, const LANES: usize> Copy for Simd<T, LANES>
72
- diff --git a/crates/core_simd/tests/masks.rs b/crates/core_simd/tests/masks.rs
73
- index 673d0db..3ebfcd1 100644
74
- --- a/crates/core_simd/tests/masks.rs
75
- +++ b/crates/core_simd/tests/masks.rs
76
- @@ -78,7 +78,6 @@ macro_rules! test_mask_api {
77
- let mask = core_simd::Mask::<$type, 16>::from_array(values);
78
- let bitmask = mask.to_bitmask();
79
- assert_eq!(bitmask, 0b1000001101001001);
80
- - assert_eq!(core_simd::Mask::<$type, 16>::from_bitmask(bitmask), mask);
81
- }
82
-
83
- #[test]
84
- @@ -91,13 +90,11 @@ macro_rules! test_mask_api {
85
- let mask = core_simd::Mask::<$type, 4>::from_array(values);
86
- let bitmask = mask.to_bitmask();
87
- assert_eq!(bitmask, 0b1000);
88
- - assert_eq!(core_simd::Mask::<$type, 4>::from_bitmask(bitmask), mask);
89
-
90
- let values = [true, false];
91
- let mask = core_simd::Mask::<$type, 2>::from_array(values);
92
- let bitmask = mask.to_bitmask();
93
- assert_eq!(bitmask, 0b01);
94
- - assert_eq!(core_simd::Mask::<$type, 2>::from_bitmask(bitmask), mask);
95
- }
96
-
97
- #[test]
98
34
- -
99
35
2.25.1
0 commit comments