From b8e468a68a879f51c694791e17a4bff175d7cd5e Mon Sep 17 00:00:00 2001 From: Gabriel Hege Date: Wed, 18 Sep 2024 11:54:44 +0200 Subject: [PATCH] x86: move definition of 'value' to correct branch in _mm_loadl_epi64 --- simde/x86/sse2.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simde/x86/sse2.h b/simde/x86/sse2.h index 1d73c89a0..610d54fee 100644 --- a/simde/x86/sse2.h +++ b/simde/x86/sse2.h @@ -3548,12 +3548,11 @@ simde_mm_loadl_epi64 (simde__m128i const* mem_addr) { #else simde__m128i_private r_; - int64_t value; - simde_memcpy(&value, mem_addr, sizeof(value)); - #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) r_.neon_i64 = vcombine_s64(vld1_s64(HEDLEY_REINTERPRET_CAST(int64_t const *, mem_addr)), vdup_n_s64(0)); #else + int64_t value; + simde_memcpy(&value, mem_addr, sizeof(value)); r_.i64[0] = value; r_.i64[1] = 0; #endif