Skip to content

Commit b9bfc8c

Browse files
authored
make NAN handling depend on dummy2 parameter
1 parent eb4879e commit b9bfc8c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

kernel/power/scal.S

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,23 @@
4747
#ifndef __64BIT__
4848
#define X r6
4949
#define INCX r7
50+
#define FLAG r11
5051
#else
5152
#define X r7
5253
#define INCX r8
54+
#define FLAG r12
5355
#endif
5456
#endif
5557

5658
#if defined(_AIX) || defined(__APPLE__)
5759
#if !defined(__64BIT__) && defined(DOUBLE)
5860
#define X r8
5961
#define INCX r9
62+
#define FLAG r13
6063
#else
6164
#define X r7
6265
#define INCX r8
66+
#define FLAG r12
6367
#endif
6468
#endif
6569

@@ -84,9 +88,12 @@
8488
cmpwi cr0, N, 0
8589
blelr- cr0
8690

87-
// fcmpu cr0, FZERO, ALPHA
88-
// bne- cr0, LL(A1I1)
89-
b LL(A1I1)
91+
fcmpu cr0, FZERO, ALPHA
92+
bne- cr0, LL(A1I1)
93+
94+
ld FLAG, 48+64+8(SP)
95+
cmpwi cr0, FLAG, 1
96+
beq- cr0, LL(A1I1)
9097

9198
cmpwi cr0, INCX, SIZE
9299
bne- cr0, LL(A0IN)

0 commit comments

Comments
 (0)