diff options
author | 2020-10-19 09:35:44 +0000 | |
---|---|---|
committer | 2020-10-19 09:35:44 +0000 | |
commit | 62bcd63ce602cea73a471feed82939ac0b32d2b6 (patch) | |
tree | 8c6b6272e393020f3aea4a5b94a835560542f043 | |
parent | Skip floating-point exception checks on arm64 and armv7 as the hardware (diff) | |
download | wireguard-openbsd-62bcd63ce602cea73a471feed82939ac0b32d2b6.tar.xz wireguard-openbsd-62bcd63ce602cea73a471feed82939ac0b32d2b6.zip |
Disable FP exception masking tests on armv7 and arm64. ARM hardware doesn't
implement this feature.
-rw-r--r-- | regress/lib/libm/msun/fenv_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/regress/lib/libm/msun/fenv_test.c b/regress/lib/libm/msun/fenv_test.c index f01e5a57ac6..d63d82e84de 100644 --- a/regress/lib/libm/msun/fenv_test.c +++ b/regress/lib/libm/msun/fenv_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv_test.c,v 1.3 2019/02/22 14:22:51 bluhm Exp $ */ +/* $OpenBSD: fenv_test.c,v 1.4 2020/10/19 09:35:44 kettenis Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.org> * All rights reserved. @@ -394,6 +394,7 @@ test_fegsetenv(void) static void test_masking(void) { +#if !defined(__arm__) && !defined(__aarch64__) struct sigaction act; int except, pass, raise, status; unsigned i; @@ -462,6 +463,7 @@ test_masking(void) } } assert(fetestexcept(FE_ALL_EXCEPT) == 0); +#endif } /* @@ -537,6 +539,9 @@ test_feholdupdate(void) assert(0); } } +#if defined(__arm__) || defined(__aarch64__) + break; +#endif } assert(fetestexcept(FE_ALL_EXCEPT) == 0); } |