projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cfd6f1
)
MIPS64: Fix dnrm2_tiny testcase failure
author
gxw
<guxiwei-hf@loongson.cn>
Thu, 7 Jul 2022 12:39:01 +0000
(20:39 +0800)
committer
gxw
<guxiwei-hf@loongson.cn>
Mon, 11 Jul 2022 11:18:38 +0000
(19:18 +0800)
kernel/mips64/dnrm2.S
patch
|
blob
|
history
diff --git
a/kernel/mips64/dnrm2.S
b/kernel/mips64/dnrm2.S
index
a095e05
..
0ccc781
100644
(file)
--- a/
kernel/mips64/dnrm2.S
+++ b/
kernel/mips64/dnrm2.S
@@
-68,6
+68,7
@@
#define ALPHA $f16
#define max $f17
+#define INF $f18
PROLOGUE
@@
-86,6
+87,11
@@
move XX, X
NOP
+ //Init INF
+ lui TEMP, 0x7FF0
+ dsll TEMP, TEMP, 32
+ MTC1 TEMP, INF
+
LD a1, 0 * SIZE(X)
daddiu N, N, -1
@@
-255,6
+261,9
@@
div.d ALPHA, ALPHA, s1
MOV max, s1
+ CMPEQ $fcc0, ALPHA, INF
+ bc1t $fcc0, .L999
+
MOV s1, a1
MOV s2, a1
MOV s3, a1