From da25087f790e9c15fcf633a39e5de307608c9251 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Fri, 24 Jun 2022 01:26:24 -0400 Subject: [PATCH] Test a more useful pointer --- crates/core_simd/tests/pointers.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/core_simd/tests/pointers.rs b/crates/core_simd/tests/pointers.rs index 2c20362119ef..8eb0bd84042b 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() { 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() { test_helpers::test_unary_elementwise( - &Simd::<*$constness (), LANES>::addr, - &<*$constness ()>::addr, + &Simd::<*$constness u32, LANES>::addr, + &<*$constness u32>::addr, &|_| true, ); } fn wrapping_offset() { 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() { 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() { test_helpers::test_binary_elementwise( - &Simd::<*$constness (), LANES>::wrapping_sub, - &<*$constness ()>::wrapping_sub, + &Simd::<*$constness u32, LANES>::wrapping_sub, + &<*$constness u32>::wrapping_sub, &|_, _| true, ); }