aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/tests
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-06-22 16:38:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-06-22 16:38:45 +0000
commitdf3b437c1e073eb83e9a93af1c417f3ee8d0de3b (patch)
treea8978953a3aa9ce7c7eca75dd0629d620adbf217 /lib/msun/tests
parent800e82d12411938c4484c7d7de5bf9f5e641e43c (diff)
Diffstat (limited to 'lib/msun/tests')
-rw-r--r--lib/msun/tests/lround_test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/msun/tests/lround_test.c b/lib/msun/tests/lround_test.c
index a6daa5459c7b..ddb2b2cea9b3 100644
--- a/lib/msun/tests/lround_test.c
+++ b/lib/msun/tests/lround_test.c
@@ -40,14 +40,9 @@ __FBSDID("$FreeBSD$");
#define IGNORE 0x12345
-/*
- * XXX The volatile here is to avoid gcc's bogus constant folding and work
- * around the lack of support for the FENV_ACCESS pragma.
- */
#define test(func, x, result, excepts) do { \
- volatile double _d = x; \
ATF_REQUIRE_EQ(0, feclearexcept(FE_ALL_EXCEPT)); \
- volatile double _r = (func)(_d); \
+ long long _r = (func)(x); \
CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT, "for %s(%s)", \
#func, #x); \
if ((excepts & FE_INVALID) != 0) { \