diff options
| author | kettenis <> | 2021-06-17 12:55:38 +0000 |
|---|---|---|
| committer | kettenis <> | 2021-06-17 12:55:38 +0000 |
| commit | 99fdd294f94a6887c93ab0dcf8ff9cb842c6caf0 (patch) | |
| tree | 31895ac76363ae60fd7580306685528b9937b3cc | |
| parent | ab3df80a991b52f1a7c9569e4573ba7c66e9575f (diff) | |
| download | openbsd-99fdd294f94a6887c93ab0dcf8ff9cb842c6caf0.tar.gz openbsd-99fdd294f94a6887c93ab0dcf8ff9cb842c6caf0.tar.bz2 openbsd-99fdd294f94a6887c93ab0dcf8ff9cb842c6caf0.zip | |
Like ARM, RISC-V does not implement floating point exceptions.
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libc/ieeefp/except/Makefile | 4 | ||||
| -rw-r--r-- | src/regress/lib/libc/setjmp-fpu/fpu.c | 4 | ||||
| -rw-r--r-- | src/regress/lib/libc/setjmp-fpu/setjmp-fpu.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/regress/lib/libc/ieeefp/except/Makefile b/src/regress/lib/libc/ieeefp/except/Makefile index cf73841c4e..0a16eb762e 100644 --- a/src/regress/lib/libc/ieeefp/except/Makefile +++ b/src/regress/lib/libc/ieeefp/except/Makefile | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.6 2020/10/18 17:40:06 kettenis Exp $ | 1 | # $OpenBSD: Makefile,v 1.7 2021/06/17 12:55:38 kettenis Exp $ |
| 2 | 2 | ||
| 3 | PROG=except | 3 | PROG=except |
| 4 | 4 | ||
| 5 | REGRESS_TARGETS+= fltdiv fltinv fltovf fltund | 5 | REGRESS_TARGETS+= fltdiv fltinv fltovf fltund |
| 6 | 6 | ||
| 7 | .if ${MACHINE} == arm64 || ${MACHINE} == armv7 | 7 | .if ${MACHINE} == arm64 || ${MACHINE} == armv7 || ${MACHINE} == riscv64 |
| 8 | # Floating-point exceptions are optional and absent on most hardware | 8 | # Floating-point exceptions are optional and absent on most hardware |
| 9 | REGRESS_EXPECTED_FAILURES+= fltdiv fltinv fltovf fltund | 9 | REGRESS_EXPECTED_FAILURES+= fltdiv fltinv fltovf fltund |
| 10 | .endif | 10 | .endif |
diff --git a/src/regress/lib/libc/setjmp-fpu/fpu.c b/src/regress/lib/libc/setjmp-fpu/fpu.c index 8637854177..e585702887 100644 --- a/src/regress/lib/libc/setjmp-fpu/fpu.c +++ b/src/regress/lib/libc/setjmp-fpu/fpu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: fpu.c,v 1.2 2020/10/19 08:50:35 kettenis Exp $ */ | 1 | /* $OpenBSD: fpu.c,v 1.3 2021/06/17 12:55:38 kettenis Exp $ */ |
| 2 | 2 | ||
| 3 | #include <err.h> | 3 | #include <err.h> |
| 4 | #include <fenv.h> | 4 | #include <fenv.h> |
| @@ -34,7 +34,7 @@ main(int argc, char *argv[]) | |||
| 34 | rv = fegetround(); | 34 | rv = fegetround(); |
| 35 | if (rv != FE_UPWARD) | 35 | if (rv != FE_UPWARD) |
| 36 | errx(1, "fegetround returned %d, not FE_UPWARD", rv); | 36 | errx(1, "fegetround returned %d, not FE_UPWARD", rv); |
| 37 | #if !defined(__arm__) && !defined(__aarch64__) | 37 | #if !defined(__arm__) && !defined(__aarch64__) && !defined(__riscv) |
| 38 | rv = fegetexcept(); | 38 | rv = fegetexcept(); |
| 39 | if (rv != FE_DIVBYZERO) | 39 | if (rv != FE_DIVBYZERO) |
| 40 | errx(1, "fegetexcept returned %d, not FE_DIVBYZERO", | 40 | errx(1, "fegetexcept returned %d, not FE_DIVBYZERO", |
diff --git a/src/regress/lib/libc/setjmp-fpu/setjmp-fpu.c b/src/regress/lib/libc/setjmp-fpu/setjmp-fpu.c index b74460e5ee..b5ffd8948e 100644 --- a/src/regress/lib/libc/setjmp-fpu/setjmp-fpu.c +++ b/src/regress/lib/libc/setjmp-fpu/setjmp-fpu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: setjmp-fpu.c,v 1.6 2020/10/19 08:50:35 kettenis Exp $ */ | 1 | /* $OpenBSD: setjmp-fpu.c,v 1.7 2021/06/17 12:55:38 kettenis Exp $ */ |
| 2 | 2 | ||
| 3 | #include <err.h> | 3 | #include <err.h> |
| 4 | #include <fenv.h> | 4 | #include <fenv.h> |
| @@ -42,7 +42,7 @@ TEST_SETJMP(void) | |||
| 42 | rv = fegetround(); | 42 | rv = fegetround(); |
| 43 | if (rv != FE_UPWARD) | 43 | if (rv != FE_UPWARD) |
| 44 | errx(1, "fegetround returned %d, not FE_UPWARD", rv); | 44 | errx(1, "fegetround returned %d, not FE_UPWARD", rv); |
| 45 | #if !defined(__arm__) && !defined(__aarch64__) | 45 | #if !defined(__arm__) && !defined(__aarch64__) && !defined(__riscv) |
| 46 | rv = fegetexcept(); | 46 | rv = fegetexcept(); |
| 47 | if (rv != FE_DIVBYZERO) | 47 | if (rv != FE_DIVBYZERO) |
| 48 | errx(1, "fegetexcept returned %d, not FE_DIVBYZERO", | 48 | errx(1, "fegetexcept returned %d, not FE_DIVBYZERO", |
