Fixed #7. Modified axpy kernel codes to avoid unloop with incx==0 or incy==0 in x86 32bits arch.

This commit is contained in:
Xianyi
2011-02-23 20:08:34 +08:00
parent cd2cbabecc
commit 12214e1d0f
4 changed files with 61 additions and 0 deletions

View File

@@ -698,6 +698,12 @@
.L40:
movl Y, YY
movl M, %eax
//If incx==0 || incy==0, avoid unloop.
cmpl $0, INCX
je .L46
cmpl $0, INCY
je .L46
sarl $3, %eax
jle .L45
ALIGN_3