fix DNRM2 returning INF instead of zero due to intermediate overflow

This commit is contained in:
Martin Kroeker 2022-07-19 10:19:27 +02:00 committed by GitHub
parent 7da799dc66
commit 06ef015234
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