summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-04-16 14:32:53 +0000
committermarius <marius@FreeBSD.org>2006-04-16 14:32:53 +0000
commitdfe4122cfa392487d510220419a4372117da70e1 (patch)
treef5815f07c17c2f50c410dec0b04e8bf033d8f8d8
parent004bb16acb94a6ae31c7405e8ae5b5d5c77bfdfa (diff)
downloadFreeBSD-src-dfe4122cfa392487d510220419a4372117da70e1.zip
FreeBSD-src-dfe4122cfa392487d510220419a4372117da70e1.tar.gz
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
-rw-r--r--lib/libc/sparc64/fpu/fpu_qp.c8
1 files changed, 4 insertions, 4 deletions
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)
OpenPOWER on IntegriCloud