patch-2.1.97 linux/arch/sparc64/math-emu/fcmpq.c

Next file: linux/arch/sparc64/math-emu/fnegq.c
Previous file: linux/arch/sparc64/math-emu/fcmpeq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/arch/sparc64/math-emu/fcmpq.c linux/arch/sparc64/math-emu/fcmpq.c
@@ -11,11 +11,8 @@
 	rd = (void *)(((long)rd)&~3);
 	__FP_UNPACK_Q(A, rs1);
 	__FP_UNPACK_Q(B, rs2);
-	FP_CMP_Q(ret, A, B, 3);
-	switch (ret) {
-	case 1: ret = 2; break;
-	case -1: ret = 1; break;
-	}
+	FP_CMP_Q(ret, B, A, 3);
+	if (ret == -1) ret = 2;
 	fsr = *(unsigned long *)rd;
 	switch (fccno) {
 	case 0: fsr &= ~0xc00; fsr |= (ret << 10); break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov