about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu/s_fmax.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/fpu/s_fmax.S')
-rw-r--r--sysdeps/powerpc/fpu/s_fmax.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/powerpc/fpu/s_fmax.S b/sysdeps/powerpc/fpu/s_fmax.S
index d5373d7bb1..3721db4c94 100644
--- a/sysdeps/powerpc/fpu/s_fmax.S
+++ b/sysdeps/powerpc/fpu/s_fmax.S
@@ -21,13 +21,13 @@
 
 ENTRY(__fmax)
 /* double [f1] fmax (double [f1] x, double [f2] y); */
-	fcmpu	0,1,2
-	blt	0,0f		/* if x < y, neither x nor y can be NaN... */
-	bnulr+	0
+	fcmpu	cr0,f1,f2
+	blt	cr0,0f		/* if x < y, neither x nor y can be NaN... */
+	bnulr+	cr0
 /* x and y are unordered, so one of x or y must be a NaN... */
-	fcmpu	1,2,2
-	bunlr	1
-0:	fmr	1,2
+	fcmpu	cr1,f2,f2
+	bunlr	cr1
+0:	fmr	f1,f2
 	blr
 END(__fmax)