Skip to content

Commit e107fac

Browse files
authored
Merge pull request rust-lang#56 from AdamNiederer/autotest-avx
Add assert_instr to the rest of avx.rs
2 parents b316109 + 1a561f4 commit e107fac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/x86/avx.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ use stdsimd_test::assert_instr;
77
/// in `a` and `b`.
88
#[inline(always)]
99
#[target_feature = "+avx"]
10+
#[cfg_attr(test, assert_instr(vaddpd))]
1011
pub fn _mm256_add_pd(a: f64x4, b: f64x4) -> f64x4 {
1112
a + b
1213
}
1314

1415
/// Add packed single-precision (32-bit) floating-point elements in `a` and `b`.
1516
#[inline(always)]
1617
#[target_feature = "+avx"]
18+
#[cfg_attr(test, assert_instr(vaddps))]
1719
pub fn _mm256_add_ps(a: f32x8, b: f32x8) -> f32x8 {
1820
a + b
1921
}
@@ -39,6 +41,7 @@ pub fn _mm256_mul_ps(a: f32x8, b: f32x8) -> f32x8 {
3941
/// floating-point elements in `a` to/from packed elements in `b`.
4042
#[inline(always)]
4143
#[target_feature = "+avx"]
44+
#[cfg_attr(test, assert_instr(vaddsubpd))]
4245
pub fn _mm256_addsub_pd(a: f64x4, b: f64x4) -> f64x4 {
4346
unsafe { addsubpd256(a, b) }
4447
}

0 commit comments

Comments
 (0)