Skip to content

Commit cce4b1d

Browse files
committed
MIPS64: Fix dnrm2_tiny testcase failure
1 parent 4cfd6f1 commit cce4b1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kernel/mips64/dnrm2.S

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969
#define ALPHA $f16
7070
#define max $f17
71+
#define INF $f18
7172

7273

7374
PROLOGUE
@@ -86,6 +87,11 @@
8687
move XX, X
8788
NOP
8889

90+
//Init INF
91+
lui TEMP, 0x7FF0
92+
dsll TEMP, TEMP, 32
93+
MTC1 TEMP, INF
94+
8995
LD a1, 0 * SIZE(X)
9096
daddiu N, N, -1
9197

@@ -255,6 +261,9 @@
255261
div.d ALPHA, ALPHA, s1
256262
MOV max, s1
257263

264+
CMPEQ $fcc0, ALPHA, INF
265+
bc1t $fcc0, .L999
266+
258267
MOV s1, a1
259268
MOV s2, a1
260269
MOV s3, a1

0 commit comments

Comments
 (0)