Skip to content

Commit 404a1f3

Browse files
committed
mips64: Fixed numpy CI failure
1 parent 68f83c8 commit 404a1f3

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

kernel/mips64/scal.S

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@
3939
#define ASSEMBLER
4040
#include "common.h"
4141

42-
#define N $4
42+
#define N $4
4343

44-
#define X $8
44+
#define X $8
4545
#define INCX $9
4646

47-
#define I $2
47+
#define I $2
4848
#define TEMP $3
4949

50-
#define XX $5
50+
#define XX $5
51+
#define DUMMY2 $6
5152

5253
#define ALPHA $f15
5354

@@ -73,14 +74,14 @@
7374
blez N, .L999
7475
dsll INCX, INCX, BASE_SHIFT
7576

76-
CMPEQ $fcc0, ALPHA, a1
77-
NOP
77+
CMPEQ $fcc0, ALPHA, a1
78+
LDARG DUMMY2, 8($sp)
7879

79-
bc1f $fcc0, .L50
80-
NOP
80+
bc1f $fcc0, .L50
81+
dsll DUMMY2, DUMMY2, BASE_SHIFT
8182

82-
bc1t $fcc0, .L50
83-
NOP
83+
beq DUMMY2, TEMP, .L50 // If dummy2 == 1, do not directly copy 0
84+
NOP
8485

8586
bne INCX, TEMP, .L20
8687
dsra I, N, 3

0 commit comments

Comments
 (0)