We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a7fdd commit adf19bfCopy full SHA for adf19bf
crates/core_arch/src/x86/avx.rs
@@ -2741,8 +2741,8 @@ pub unsafe fn _mm256_set1_epi32(a: i32) -> __m256i {
2741
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_set1_epi64x)
2742
#[inline]
2743
#[target_feature(enable = "avx")]
2744
-//#[cfg_attr(test, assert_instr(vmovddup))]
2745
-#[cfg_attr(test, assert_instr(vinsertf128))]
+#[cfg_attr(all(test, target_arch = "x86_64"), assert_instr(vinsertf128))]
+#[cfg_attr(all(test, target_arch = "x86"), assert_instr(vbroadcastsd))]
2746
// This intrinsic has no corresponding instruction.
2747
#[stable(feature = "simd_x86", since = "1.27.0")]
2748
pub unsafe fn _mm256_set1_epi64x(a: i64) -> __m256i {
0 commit comments