Browse Source
Merge pull request #3691 from martin-frbg/issue3679-sparc
SPARC: fix DNRM2 returning INF instead of zero due to intermediate overflow
tags/v0.3.21
Martin Kroeker
GitHub
3 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
kernel/sparc/dnrm2.S
|
|
|
@@ -387,6 +387,14 @@ |
|
|
|
FMUL fmax, c1, c1 |
|
|
|
|
|
|
|
.LL99: |
|
|
|
#ifdef DOUBLE |
|
|
|
set 0x000010C6F7A0B5ED8, %g1 |
|
|
|
|
|
|
|
st %g1, [%fp-8] |
|
|
|
ld [%fp-8], a8 |
|
|
|
FCMP %fcc0, a8, fmax |
|
|
|
fmovdg %fcc0, fzero, c1 |
|
|
|
#endif |
|
|
|
return %i7 + 8 |
|
|
|
clr %g0 |
|
|
|
|
|
|
|
|