Skip to content

Commit 5007fa2

Browse files
committed
x86 sse3 simde_mm_loaddup_pd: avoid UB in Neon A32V7 impl
1 parent a51b898 commit 5007fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simde/x86/sse3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ simde_mm_loaddup_pd (simde_float64 const* mem_addr) {
434434
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
435435
r_.neon_f64 = vdupq_n_f64(*mem_addr);
436436
#elif defined(SIMDE_ARM_NEON_A32V7_NATIVE)
437-
r_.neon_i64 = vdupq_n_s64(*HEDLEY_REINTERPRET_CAST(int64_t const*, mem_addr));
437+
r_.neon_i64 = vdupq_n_s64(HEDLEY_REINTERPRET_CAST(int64_t, *mem_addr));
438438
#elif defined(SIMDE_LOONGARCH_LSX_NATIVE)
439439
r_.lsx_i64 = __lsx_vldrepl_d(mem_addr, 0);
440440
#else

0 commit comments

Comments
 (0)