From 6818ed85b55b036ff0afea09a841a5a80f152af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Tue, 29 Aug 2023 22:38:49 +0200 Subject: [PATCH] Fix `_mm_srli_epi64` --- crates/core_arch/src/x86/sse2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_arch/src/x86/sse2.rs b/crates/core_arch/src/x86/sse2.rs index 1136747ea4..3d572a1f56 100644 --- a/crates/core_arch/src/x86/sse2.rs +++ b/crates/core_arch/src/x86/sse2.rs @@ -752,7 +752,7 @@ pub unsafe fn _mm_srl_epi32(a: __m128i, count: __m128i) -> __m128i { #[stable(feature = "simd_x86", since = "1.27.0")] pub unsafe fn _mm_srli_epi64(a: __m128i) -> __m128i { static_assert_uimm_bits!(IMM8, 8); - if IMM8 >= 32 { + if IMM8 >= 64 { _mm_setzero_si128() } else { transmute(simd_shr(a.as_u64x2(), u64x2::splat(IMM8 as u64)))