Skip to content

Commit 04cdf31

Browse files
committed
Don't expect specific instructions for _mm256_set_pd/_mm_set_ps
These don't correspond to specific instructions and will produce different instructions on x86/x86_64 based on ABI details.
1 parent 9040e2f commit 04cdf31

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

crates/core_arch/src/x86/avx.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,6 @@ pub const fn _mm256_setzero_si256() -> __m256i {
24262426
#[inline]
24272427
#[target_feature(enable = "avx")]
24282428
// This intrinsic has no corresponding instruction.
2429-
#[cfg_attr(test, assert_instr(vinsertf128))]
24302429
#[stable(feature = "simd_x86", since = "1.27.0")]
24312430
#[rustc_const_unstable(feature = "stdarch_const_x86", issue = "149298")]
24322431
pub const fn _mm256_set_pd(a: f64, b: f64, c: f64, d: f64) -> __m256d {

crates/core_arch/src/x86/sse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ pub const fn _mm_set_ps1(a: f32) -> __m128 {
968968
/// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_ps)
969969
#[inline]
970970
#[target_feature(enable = "sse")]
971-
#[cfg_attr(test, assert_instr(unpcklps))]
971+
// This intrinsic has no corresponding instruction.
972972
#[stable(feature = "simd_x86", since = "1.27.0")]
973973
#[rustc_const_unstable(feature = "stdarch_const_x86", issue = "149298")]
974974
pub const fn _mm_set_ps(a: f32, b: f32, c: f32, d: f32) -> __m128 {

0 commit comments

Comments
 (0)