Skip to content

Commit adf19bf

Browse files
committed
Update codegen of _mm256_set1_epi64x for x86 32-bit
1 parent a2a7fdd commit adf19bf

File tree

1 file changed

+2
-2
lines changed
  • crates/core_arch/src/x86

1 file changed

+2
-2
lines changed

crates/core_arch/src/x86/avx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,8 +2741,8 @@ pub unsafe fn _mm256_set1_epi32(a: i32) -> __m256i {
27412741
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_set1_epi64x)
27422742
#[inline]
27432743
#[target_feature(enable = "avx")]
2744-
//#[cfg_attr(test, assert_instr(vmovddup))]
2745-
#[cfg_attr(test, assert_instr(vinsertf128))]
2744+
#[cfg_attr(all(test, target_arch = "x86_64"), assert_instr(vinsertf128))]
2745+
#[cfg_attr(all(test, target_arch = "x86"), assert_instr(vbroadcastsd))]
27462746
// This intrinsic has no corresponding instruction.
27472747
#[stable(feature = "simd_x86", since = "1.27.0")]
27482748
pub unsafe fn _mm256_set1_epi64x(a: i64) -> __m256i {

0 commit comments

Comments
 (0)