Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib There are aarch64 Cortex cpus that do not trap on ...



details:   https://anonhg.NetBSD.org/src/rev/827dc864ca3e
branches:  trunk
changeset: 447777:827dc864ca3e
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 23 17:36:01 2019 +0000

description:
There are aarch64 Cortex cpus that do not trap on some floating point
exceptions - so apply the arm handling for aarch64 as well.

diffstat:

 tests/lib/libc/gen/t_fpsetmask.c |  4 ++--
 tests/lib/libc/gen/t_siginfo.c   |  4 ++--
 tests/lib/libm/t_fenv.c          |  6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 7045546bea45 -r 827dc864ca3e tests/lib/libc/gen/t_fpsetmask.c
--- a/tests/lib/libc/gen/t_fpsetmask.c  Wed Jan 23 16:22:14 2019 +0000
+++ b/tests/lib/libc/gen/t_fpsetmask.c  Wed Jan 23 17:36:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fpsetmask.c,v 1.17 2018/12/16 02:18:01 sevan Exp $ */
+/*     $NetBSD: t_fpsetmask.c,v 1.18 2019/01/23 17:36:01 martin Exp $ */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
 
 #include <ieeefp.h>
 
-#if __arm__ && !__SOFTFP__
+#if (__arm__ && !__SOFTFP__) || __aarch64__
        /*
         * Some NEON fpus do not implement IEEE exception handling,
         * skip these tests if running on them and compiled for
diff -r 7045546bea45 -r 827dc864ca3e tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Wed Jan 23 16:22:14 2019 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Wed Jan 23 17:36:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.32 2018/01/17 00:16:43 maya Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.33 2019/01/23 17:36:01 martin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -309,7 +309,7 @@
 
        if (isQEMU())
                atf_tc_skip("Test does not run correctly under QEMU");
-#if defined(__arm__) && !__SOFTFP__
+#if (__arm__ && !__SOFTFP__) || __aarch64__
        /*
         * Some NEON fpus do not implement IEEE exception handling,
         * skip these tests if running on them and compiled for
diff -r 7045546bea45 -r 827dc864ca3e tests/lib/libm/t_fenv.c
--- a/tests/lib/libm/t_fenv.c   Wed Jan 23 16:22:14 2019 +0000
+++ b/tests/lib/libm/t_fenv.c   Wed Jan 23 17:36:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fenv.c,v 1.3 2015/12/22 14:20:59 christos Exp $ */
+/* $NetBSD: t_fenv.c,v 1.4 2019/01/23 17:36:01 martin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fenv.c,v 1.3 2015/12/22 14:20:59 christos Exp $");
+__RCSID("$NetBSD: t_fenv.c,v 1.4 2019/01/23 17:36:01 martin Exp $");
 
 #include <atf-c.h>
 
@@ -40,7 +40,7 @@
 #include <stdlib.h>
 
 
-#if __arm__ && !__SOFTFP__
+#if (__arm__ && !__SOFTFP__) || __aarch64__
        /*
         * Some NEON fpus do not implement IEEE exception handling,
         * skip these tests if running on them and compiled for



Home | Main Index | Thread Index | Old Index