File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ use stdsimd_test::assert_instr;
7
7
/// in `a` and `b`.
8
8
#[ inline( always) ]
9
9
#[ target_feature = "+avx" ]
10
+ #[ cfg_attr( test, assert_instr( vaddpd) ) ]
10
11
pub fn _mm256_add_pd ( a : f64x4 , b : f64x4 ) -> f64x4 {
11
12
a + b
12
13
}
13
14
14
15
/// Add packed single-precision (32-bit) floating-point elements in `a` and `b`.
15
16
#[ inline( always) ]
16
17
#[ target_feature = "+avx" ]
18
+ #[ cfg_attr( test, assert_instr( vaddps) ) ]
17
19
pub fn _mm256_add_ps ( a : f32x8 , b : f32x8 ) -> f32x8 {
18
20
a + b
19
21
}
@@ -39,6 +41,7 @@ pub fn _mm256_mul_ps(a: f32x8, b: f32x8) -> f32x8 {
39
41
/// floating-point elements in `a` to/from packed elements in `b`.
40
42
#[ inline( always) ]
41
43
#[ target_feature = "+avx" ]
44
+ #[ cfg_attr( test, assert_instr( vaddsubpd) ) ]
42
45
pub fn _mm256_addsub_pd ( a : f64x4 , b : f64x4 ) -> f64x4 {
43
46
unsafe { addsubpd256 ( a, b) }
44
47
}
You can’t perform that action at this time.
0 commit comments