From 4664b57e6ede3c55efea2c6aba01dad59e84e67a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 4 Aug 2023 12:25:34 +0200 Subject: [PATCH] use shortcut only when both incx and incy are zero --- kernel/x86_64/zaxpy_sse2.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/x86_64/zaxpy_sse2.S b/kernel/x86_64/zaxpy_sse2.S index a7dd054fb..3776c8910 100644 --- a/kernel/x86_64/zaxpy_sse2.S +++ b/kernel/x86_64/zaxpy_sse2.S @@ -1418,10 +1418,10 @@ movq M, %rax //If incx==0 || incy==0, avoid unloop and jump to end. cmpq $0, INCX - je .L58 + jne .L59 cmpq $0, INCY je .L58 - +.L59: sarq $3, %rax jle .L55