aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/tests/lround_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/tests/lround_test.c')
-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) { \