Skip to content

Commit fca6626

Browse files
author
Aleksey Kuleshov
committed
mips64/axpy: fix error when INCY == 0
1 parent bd06b24 commit fca6626

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

kernel/mips64/axpy.S

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@
225225
.align 3
226226

227227
.L20:
228+
beqz INCY, .L27
228229
dsra I, N, 3
230+
229231
move YY, Y
230232

231233
blez I, .L25
@@ -405,5 +407,19 @@
405407

406408
j $31
407409
NOP
410+
.align 3
411+
412+
.L27:
413+
LD b1, 0 * SIZE(Y)
414+
415+
.L28:
416+
daddiu N, N, -1
417+
LD a1, 0 * SIZE(X)
418+
daddu X, X, INCX
419+
bgtz N, .L28
420+
MADD b1, b1, ALPHA, a1
421+
422+
j .L999
423+
ST b1, 0 * SIZE(Y)
408424

409425
EPILOGUE

0 commit comments

Comments
 (0)