about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2021-11-21 14:35:25 -0800
committerJubilee <46493976+workingjubilee@users.noreply.github.com>2021-11-23 15:19:01 -0800
commitced3a05526ce70583f827b5d99a69f436126af20 (patch)
tree251316776f99fffffc0924fa69cb421219b9e2bb
parentb8d6b6844602f80af79cd96401339ec594d472d8 (diff)
downloadrust-ced3a05526ce70583f827b5d99a69f436126af20.tar.gz
rust-ced3a05526ce70583f827b5d99a69f436126af20.zip
Attempt to support to 64 lanes
-rw-r--r--crates/core_simd/src/lane_count.rs3
-rw-r--r--crates/test_helpers/src/lib.rs12
2 files changed, 15 insertions, 0 deletions
diff --git a/crates/core_simd/src/lane_count.rs b/crates/core_simd/src/lane_count.rs
index 4a5dc80049a..3b316f12b3e 100644
--- a/crates/core_simd/src/lane_count.rs
+++ b/crates/core_simd/src/lane_count.rs
@@ -37,3 +37,6 @@ impl SupportedLaneCount for LaneCount<16> {
 impl SupportedLaneCount for LaneCount<32> {
     type BitMask = [u8; 4];
 }
+impl SupportedLaneCount for LaneCount<64> {
+    type BitMask = [u8; 8];
+}
diff --git a/crates/test_helpers/src/lib.rs b/crates/test_helpers/src/lib.rs
index 5c6478876f3..7edd6096381 100644
--- a/crates/test_helpers/src/lib.rs
+++ b/crates/test_helpers/src/lib.rs
@@ -376,6 +376,12 @@ macro_rules! test_lanes {
                 fn lanes_32() {
                     implementation::<32>();
                 }
+
+                #[test]
+                #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
+                fn lanes_64() {
+                    implementation::<64>();
+                }
             }
         )*
     }
@@ -431,6 +437,12 @@ macro_rules! test_lanes_panic {
                 fn lanes_32() {
                     implementation::<32>();
                 }
+
+                #[test]
+                #[should_panic]
+                fn lanes_64() {
+                    implementation::<64>();
+                }
             }
         )*
     }