Skip to content

Commit

Permalink
Handle INF/NAN correctly when dummy2 flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Oct 3, 2024
1 parent 54afc24 commit bf03e51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/power/scal_ppc440.S
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
#endif
#endif

#define FLAG r11

#define FZERO f0
#define ALPHA f1

Expand All @@ -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)
Expand Down

0 comments on commit bf03e51

Please sign in to comment.