Merge pull request #4919 from martin-frbg/issue4916-2

Handle inf/nan in ppc440 s/dscal
This commit is contained in:
Martin Kroeker 2024-10-06 22:29:28 +02:00 committed by GitHub
commit 0dfe42d62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,8 @@
#endif
#endif
#define FLAG r11
#define FZERO f0
#define ALPHA f1
@ -88,6 +90,10 @@
fcmpu cr0, FZERO, ALPHA
bne- cr0, LL(A1I1)
lwz FLAG, FRAMESLOT(0)(SP)
cmpwi cr0, FLAG, 1
beq- cr0, LL(A1I1)
srawi. r0, N, 4
mtspr CTR, r0
beq- cr0, LL(A0I1_Remain)