From e3ce4623c299068bbd47c35ee87aab334bac73b1 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 24 Mar 2026 23:08:02 +0100 Subject: [PATCH] Use volatile attribute for SDOT only, to avoid creating new miscompilations --- kernel/arm64/dot_kernel_asimd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/arm64/dot_kernel_asimd.c b/kernel/arm64/dot_kernel_asimd.c index 27f557c705..a1ae01f2d8 100644 --- a/kernel/arm64/dot_kernel_asimd.c +++ b/kernel/arm64/dot_kernel_asimd.c @@ -262,7 +262,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. static RETURN_TYPE dot_kernel_asimd(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) { - volatile RETURN_TYPE dot = 0.0; +#ifndef DOUBLE + volatile +#endif + RETURN_TYPE dot = 0.0; BLASLONG j = 0; __asm__ __volatile__ (