From dfe4122cfa392487d510220419a4372117da70e1 Mon Sep 17 00:00:00 2001 From: marius Date: Sun, 16 Apr 2006 14:32:53 +0000 Subject: For _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq", this means they should set the cmpe flag when calling __fpu_compare(). Submitted by: stefanf MFC after: 2 weeks --- lib/libc/sparc64/fpu/fpu_qp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/sparc64/fpu/fpu_qp.c b/lib/libc/sparc64/fpu/fpu_qp.c index a5cc00a..284ff5e 100644 --- a/lib/libc/sparc64/fpu/fpu_qp.c +++ b/lib/libc/sparc64/fpu/fpu_qp.c @@ -139,10 +139,10 @@ _QP_QTOT(ui, i, u_int) _QP_QTOT(ux, x, u_long, &u.a) _QP_CMP(feq, 0, FCC_EQ) -_QP_CMP(fge, 0, FCC_GE) -_QP_CMP(fgt, 0, FCC_GT) -_QP_CMP(fle, 0, FCC_LE) -_QP_CMP(flt, 0, FCC_LT) +_QP_CMP(fge, 1, FCC_GE) +_QP_CMP(fgt, 1, FCC_GT) +_QP_CMP(fle, 1, FCC_LE) +_QP_CMP(flt, 1, FCC_LT) _QP_CMP(fne, 0, FCC_NE) _QP_CMP(cmp, 0, FCC_ID) _QP_CMP(cmpe, 1, FCC_ID) -- cgit v1.1