Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/core_arch/src/x86/avx512f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33248,7 +33248,7 @@ pub fn _mm512_reduce_add_ps(a: __m512) -> f32 {
);
let a = _mm_add_ps(_mm256_extractf128_ps::<0>(a), _mm256_extractf128_ps::<1>(a));
let a = _mm_add_ps(a, simd_shuffle!(a, a, [2, 3, 0, 1]));
simd_extract::<_, f32>(a, 0) + simd_extract::<_, f32>(a, 1)
simd_extract!(a, 0, f32) + simd_extract!(a, 1, f32)
}
}

Expand All @@ -33275,7 +33275,7 @@ pub fn _mm512_reduce_add_pd(a: __m512d) -> f64 {
_mm512_extractf64x4_pd::<1>(a),
);
let a = _mm_add_pd(_mm256_extractf128_pd::<0>(a), _mm256_extractf128_pd::<1>(a));
simd_extract::<_, f64>(a, 0) + simd_extract::<_, f64>(a, 1)
simd_extract!(a, 0, f64) + simd_extract!(a, 1, f64)
}
}

Expand Down Expand Up @@ -33356,7 +33356,7 @@ pub fn _mm512_reduce_mul_ps(a: __m512) -> f32 {
);
let a = _mm_mul_ps(_mm256_extractf128_ps::<0>(a), _mm256_extractf128_ps::<1>(a));
let a = _mm_mul_ps(a, simd_shuffle!(a, a, [2, 3, 0, 1]));
simd_extract::<_, f32>(a, 0) * simd_extract::<_, f32>(a, 1)
simd_extract!(a, 0, f32) * simd_extract!(a, 1, f32)
}
}

Expand All @@ -33383,7 +33383,7 @@ pub fn _mm512_reduce_mul_pd(a: __m512d) -> f64 {
_mm512_extractf64x4_pd::<1>(a),
);
let a = _mm_mul_pd(_mm256_extractf128_pd::<0>(a), _mm256_extractf128_pd::<1>(a));
simd_extract::<_, f64>(a, 0) * simd_extract::<_, f64>(a, 1)
simd_extract!(a, 0, f64) * simd_extract!(a, 1, f64)
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/avx512fp16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11032,7 +11032,7 @@ pub fn _mm_reduce_add_ph(a: __m128h) -> f16 {
let a = _mm_add_ph(a, b);
let b = simd_shuffle!(a, a, [2, 3, 0, 1, 4, 5, 6, 7]);
let a = _mm_add_ph(a, b);
simd_extract::<_, f16>(a, 0) + simd_extract::<_, f16>(a, 1)
simd_extract!(a, 0, f16) + simd_extract!(a, 1, f16)
}
}

Expand Down Expand Up @@ -11085,7 +11085,7 @@ pub fn _mm_reduce_mul_ph(a: __m128h) -> f16 {
let a = _mm_mul_ph(a, b);
let b = simd_shuffle!(a, a, [2, 3, 0, 1, 4, 5, 6, 7]);
let a = _mm_mul_ph(a, b);
simd_extract::<_, f16>(a, 0) * simd_extract::<_, f16>(a, 1)
simd_extract!(a, 0, f16) * simd_extract!(a, 1, f16)
}
}

Expand Down