Merge pull request #3691 from martin-frbg/issue3679-sparc

SPARC: fix DNRM2 returning INF instead of zero due to intermediate overflow
This commit is contained in:
Martin Kroeker 2022-07-25 15:41:15 +02:00 committed by GitHub
commit cd8e57040c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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