From b36321c4bb9cec7a468bf70b27e37464cb6b28df Mon Sep 17 00:00:00 2001 From: Gabriel Hege Date: Wed, 18 Sep 2024 11:54:44 +0200 Subject: [PATCH] sse2: 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 d4bd1950e..e85ade957 100644 --- a/simde/x86/sse2.h +++ b/simde/x86/sse2.h @@ -3462,12 +3462,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