From 076f00a24650bc51f4fd8bdf66a5e77dcfc1f6a0 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 23 Jan 2019 17:36:01 +0000 Subject: [PATCH] There are aarch64 Cortex cpus that do not trap on some floating point exceptions - so apply the arm handling for aarch64 as well. --- 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(-) diff --git a/tests/lib/libc/gen/t_fpsetmask.c b/tests/lib/libc/gen/t_fpsetmask.c index bcaf1279b39b..a5b5648060d4 100644 --- a/tests/lib/libc/gen/t_fpsetmask.c +++ b/tests/lib/libc/gen/t_fpsetmask.c @@ -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 @@ ATF_TC_BODY(no_test, tc) #include -#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 --git a/tests/lib/libc/gen/t_siginfo.c b/tests/lib/libc/gen/t_siginfo.c index 4adda31ade0c..2dfdfbce953f 100644 --- a/tests/lib/libc/gen/t_siginfo.c +++ b/tests/lib/libc/gen/t_siginfo.c @@ -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 @@ ATF_TC_BODY(sigfpe_flt, tc) 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 --git a/tests/lib/libm/t_fenv.c b/tests/lib/libm/t_fenv.c index 544503673a98..9d59e3be91b1 100644 --- a/tests/lib/libm/t_fenv.c +++ b/tests/lib/libm/t_fenv.c @@ -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 -__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 @@ -40,7 +40,7 @@ __RCSID("$NetBSD: t_fenv.c,v 1.3 2015/12/22 14:20:59 christos Exp $"); #include -#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