Skip to content

Commit 4ab872d

Browse files
committed
Update LLVM9 code generation on Windows
1 parent adf19bf commit 4ab872d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/core_arch/src/x86/sse2.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,8 @@ pub unsafe fn _mm_loadu_pd(mem_addr: *const f64) -> __m128d {
27582758
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_shuffle_pd)
27592759
#[inline]
27602760
#[target_feature(enable = "sse2")]
2761-
#[cfg_attr(test, assert_instr(shufps, imm8 = 1))]
2761+
#[cfg_attr(all(test, not(target_os = "windows")), assert_instr(shufps, imm8 = 1))]
2762+
#[cfg_attr(all(test, target_os = "windows"), assert_instr(shufpd, imm8 = 1))]
27622763
#[rustc_args_required_const(2)]
27632764
#[stable(feature = "simd_x86", since = "1.27.0")]
27642765
pub unsafe fn _mm_shuffle_pd(a: __m128d, b: __m128d, imm8: i32) -> __m128d {
@@ -2777,7 +2778,8 @@ pub unsafe fn _mm_shuffle_pd(a: __m128d, b: __m128d, imm8: i32) -> __m128d {
27772778
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_move_sd)
27782779
#[inline]
27792780
#[target_feature(enable = "sse2")]
2780-
#[cfg_attr(test, assert_instr(movsd))]
2781+
#[cfg_attr(all(test, not(target_os = "windows")), assert_instr(movsd))]
2782+
#[cfg_attr(all(test, target_os = "windows"), assert_instr(movlps))]
27812783
#[stable(feature = "simd_x86", since = "1.27.0")]
27822784
pub unsafe fn _mm_move_sd(a: __m128d, b: __m128d) -> __m128d {
27832785
_mm_setr_pd(simd_extract(b, 0), simd_extract(a, 1))

0 commit comments

Comments
 (0)