Browse Source

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

Handle inf/nan in ppc440 s/dscal
tags/v0.3.29
Martin Kroeker GitHub 1 year ago
parent
commit
0dfe42d62a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      kernel/power/scal_ppc440.S

+ 6
- 0
kernel/power/scal_ppc440.S 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)


Loading…
Cancel
Save