Skip to content

Commit 34b80ce

Browse files
committed
mips64: Fixed numpy CI failure
1 parent f6d6c14 commit 34b80ce

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

kernel/mips64/scal.S

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#define TEMP $3
4949

5050
#define XX $5
51+
#define DUMMY2 $6
5152

5253
#define ALPHA $f15
5354

@@ -73,13 +74,13 @@
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

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

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

8586
bne INCX, TEMP, .L20

0 commit comments

Comments
 (0)