File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -96,19 +96,23 @@ macro_rules! impl_common_integer_tests {
96
96
test_helpers:: test_lanes! {
97
97
fn reduce_sum<const LANES : usize >( ) {
98
98
test_helpers:: test_1( & |x| {
99
+ use test_helpers:: subnormals:: { flush, flush_in} ;
99
100
test_helpers:: prop_assert_biteq! (
100
101
$vector:: <LANES >:: from_array( x) . reduce_sum( ) ,
101
102
x. iter( ) . copied( ) . fold( 0 as $scalar, $scalar:: wrapping_add) ,
103
+ flush( x. iter( ) . copied( ) . map( flush_in) . fold( 0 as $scalar, $scalar:: wrapping_add) ) ,
102
104
) ;
103
105
Ok ( ( ) )
104
106
} ) ;
105
107
}
106
108
107
109
fn reduce_product<const LANES : usize >( ) {
108
110
test_helpers:: test_1( & |x| {
111
+ use test_helpers:: subnormals:: { flush, flush_in} ;
109
112
test_helpers:: prop_assert_biteq! (
110
113
$vector:: <LANES >:: from_array( x) . reduce_product( ) ,
111
114
x. iter( ) . copied( ) . fold( 1 as $scalar, $scalar:: wrapping_mul) ,
115
+ flush( x. iter( ) . copied( ) . map( flush_in) . fold( 1 as $scalar, $scalar:: wrapping_mul) ) ,
112
116
) ;
113
117
Ok ( ( ) )
114
118
} ) ;
You can’t perform that action at this time.
0 commit comments