Module Name: src
Committed By: rin
Date: Thu Sep 8 15:21:50 UTC 2022
Modified Files:
src/sys/arch/powerpc/fpu: fpu_compare.c
Log Message:
fpu_compare(): Fix inverted logic and comment it out for now.
VXVC is raised for SNaN if VE == 0.
As we still do not support enabled exception bits, comment out
this if statement for consistency at the moment.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/fpu/fpu_compare.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/fpu/fpu_compare.c
diff -u src/sys/arch/powerpc/fpu/fpu_compare.c:1.6 src/sys/arch/powerpc/fpu/fpu_compare.c:1.7
--- src/sys/arch/powerpc/fpu/fpu_compare.c:1.6 Sun Sep 4 13:14:57 2022
+++ src/sys/arch/powerpc/fpu/fpu_compare.c Thu Sep 8 15:21:50 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_compare.c,v 1.6 2022/09/04 13:14:57 rin Exp $ */
+/* $NetBSD: fpu_compare.c,v 1.7 2022/09/08 15:21:50 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.6 2022/09/04 13:14:57 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.7 2022/09/08 15:21:50 rin Exp $");
#include <sys/types.h>
@@ -95,7 +95,10 @@ fpu_compare(struct fpemu *fe, int ordere
if (ISSNAN(a) || ISSNAN(b))
cc |= FPSCR_VXSNAN;
if (ordered) {
- if (fe->fe_fpscr & FPSCR_VE || ISQNAN(a) || ISQNAN(b))
+#ifdef notyet /* XXXRO */
+ if ((fe->fe_fpscr & FPSCR_VE) == 0 ||
+ ISQNAN(a) || ISQNAN(b))
+#endif
cc |= FPSCR_VXVC;
}
goto done;