Handle inf/nan if dummy2 flag is set

This commit is contained in:
Martin Kroeker 2024-10-06 19:57:17 +02:00 committed by GitHub
parent 624e9d110e
commit c9e92348a6
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)