From 262b13431dae8bfe587898136f360d2478fe01c2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 21 Mar 2023 14:56:56 +0300 Subject: [PATCH] testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd fixes segmentation faults --- test/testautomation_intrinsics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_intrinsics.c b/test/testautomation_intrinsics.c index 41afbc47e4..bbc452d9fc 100644 --- a/test/testautomation_intrinsics.c +++ b/test/testautomation_intrinsics.c @@ -215,7 +215,7 @@ SDL_TARGETING("sse") static void kernel_floats_add_sse(float *dest, const float #if SDL_SSE2_INTRINSICS SDL_TARGETING("sse2") static void kernel_doubles_add_sse2(double *dest, const double *a, const double *b, size_t size) { for (; size >= 2; size -= 2, dest += 2, a += 2, b += 2) { - _mm_store_pd(dest, _mm_add_pd(_mm_loadu_pd(a), _mm_loadu_pd(b))); + _mm_storeu_pd(dest, _mm_add_pd(_mm_loadu_pd(a), _mm_loadu_pd(b))); } if (size) { *dest = *a + *b;