Skip to content

Commit 0dfe42d

Browse files
authored
Merge pull request #4919 from martin-frbg/issue4916-2
Handle inf/nan in ppc440 s/dscal
2 parents 624e9d1 + c9e9234 commit 0dfe42d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/power/scal_ppc440.S

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#endif
6464
#endif
6565

66+
#define FLAG r11
67+
6668
#define FZERO f0
6769
#define ALPHA f1
6870

@@ -88,6 +90,10 @@
8890
fcmpu cr0, FZERO, ALPHA
8991
bne- cr0, LL(A1I1)
9092

93+
lwz FLAG, FRAMESLOT(0)(SP)
94+
cmpwi cr0, FLAG, 1
95+
beq- cr0, LL(A1I1)
96+
9197
srawi. r0, N, 4
9298
mtspr CTR, r0
9399
beq- cr0, LL(A0I1_Remain)

0 commit comments

Comments
 (0)