From 5f5d92ce5169541d9fcd56ba8e635813d7a20e1e Mon Sep 17 00:00:00 2001 From: Adrian-Ken Rueegsegger Date: Wed, 26 Apr 2023 23:34:07 +0200 Subject: [PATCH] test_fpu: Force proper alignment of floats For Intel x86 the movaps instruction requires an aligned memory operand, see Intel SDM Vol. 2B. --- tests/test_fpu/test_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fpu/test_fpu.c b/tests/test_fpu/test_fpu.c index f9cec2fd..621dee7b 100644 --- a/tests/test_fpu/test_fpu.c +++ b/tests/test_fpu/test_fpu.c @@ -30,7 +30,7 @@ int solo5_app_main(const struct solo5_start_info *si __attribute__((unused))) { puts("\n**** Solo5 standalone test_fpu ****\n\n"); - float a, b, c[4]; + float a, b, c[4] __attribute__((aligned(64))); c[0] = 2.0; c[1] = 5.0;