Skip to content

Commit

Permalink
Merge pull request #4919 from martin-frbg/issue4916-2
Browse files Browse the repository at this point in the history
Handle inf/nan in ppc440 s/dscal
  • Loading branch information
martin-frbg authored Oct 6, 2024
2 parents 624e9d1 + c9e9234 commit 0dfe42d
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 0dfe42d

Please sign in to comment.