From 4a0ae6e8cb0e8dcd8c5ea42953b873e1cf8043bb Mon Sep 17 00:00:00 2001 From: Brian Armstrong Date: Sun, 28 Oct 2018 13:14:42 -0700 Subject: [PATCH] just load 64 bits with _mm_loadl_epi64 --- library/stdarch/coresimd/x86/sse2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/coresimd/x86/sse2.rs b/library/stdarch/coresimd/x86/sse2.rs index 740e7d064bd1..5e6c9e29869f 100644 --- a/library/stdarch/coresimd/x86/sse2.rs +++ b/library/stdarch/coresimd/x86/sse2.rs @@ -1145,7 +1145,7 @@ pub unsafe fn _mm_setzero_si128() -> __m128i { )] #[stable(feature = "simd_x86", since = "1.27.0")] pub unsafe fn _mm_loadl_epi64(mem_addr: *const __m128i) -> __m128i { - _mm_set_epi64x(0, simd_extract(ptr::read_unaligned(mem_addr).as_i64x2(), 0)) + _mm_set_epi64x(0, ptr::read_unaligned(mem_addr as *const i64)) } /// Load 128-bits of integer data from memory into a new vector.