about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2022-06-24 01:26:24 -0400
committerCaleb Zulawski <caleb.zulawski@gmail.com>2022-10-29 11:55:01 -0400
commitda25087f790e9c15fcf633a39e5de307608c9251 (patch)
tree8c15ebcd1a2b86a7e52ba3be03b0e7d39914d4a3
parentf10e591de1d321b57af68502a78eef6f8f80c05c (diff)
downloadrust-da25087f790e9c15fcf633a39e5de307608c9251.tar.gz
rust-da25087f790e9c15fcf633a39e5de307608c9251.zip
Test a more useful pointer
-rw-r--r--crates/core_simd/tests/pointers.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/core_simd/tests/pointers.rs b/crates/core_simd/tests/pointers.rs
index 2c20362119e..8eb0bd84042 100644
--- a/crates/core_simd/tests/pointers.rs
+++ b/crates/core_simd/tests/pointers.rs
@@ -7,40 +7,40 @@ macro_rules! common_tests {
         test_helpers::test_lanes! {
             fn is_null<const LANES: usize>() {
                 test_helpers::test_unary_mask_elementwise(
-                    &Simd::<*$constness (), LANES>::is_null,
-                    &<*$constness ()>::is_null,
+                    &Simd::<*$constness u32, LANES>::is_null,
+                    &<*$constness u32>::is_null,
                     &|_| true,
                 );
             }
 
             fn addr<const LANES: usize>() {
                 test_helpers::test_unary_elementwise(
-                    &Simd::<*$constness (), LANES>::addr,
-                    &<*$constness ()>::addr,
+                    &Simd::<*$constness u32, LANES>::addr,
+                    &<*$constness u32>::addr,
                     &|_| true,
                 );
             }
 
             fn wrapping_offset<const LANES: usize>() {
                 test_helpers::test_binary_elementwise(
-                    &Simd::<*$constness (), LANES>::wrapping_offset,
-                    &<*$constness ()>::wrapping_offset,
+                    &Simd::<*$constness u32, LANES>::wrapping_offset,
+                    &<*$constness u32>::wrapping_offset,
                     &|_, _| true,
                 );
             }
 
             fn wrapping_add<const LANES: usize>() {
                 test_helpers::test_binary_elementwise(
-                    &Simd::<*$constness (), LANES>::wrapping_add,
-                    &<*$constness ()>::wrapping_add,
+                    &Simd::<*$constness u32, LANES>::wrapping_add,
+                    &<*$constness u32>::wrapping_add,
                     &|_, _| true,
                 );
             }
 
             fn wrapping_sub<const LANES: usize>() {
                 test_helpers::test_binary_elementwise(
-                    &Simd::<*$constness (), LANES>::wrapping_sub,
-                    &<*$constness ()>::wrapping_sub,
+                    &Simd::<*$constness u32, LANES>::wrapping_sub,
+                    &<*$constness u32>::wrapping_sub,
                     &|_, _| true,
                 );
             }