summaryrefslogtreecommitdiffstats
path: root/lib/msun/ia64
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-11 02:35:30 +0000
committerdas <das@FreeBSD.org>2004-06-11 02:35:30 +0000
commit388fd1cd29b7a6f04f04de635025c5a39a3dd68a (patch)
treed740b80aaac6ae1eecc12aa376c8b190088eb2c9 /lib/msun/ia64
parenta19b0e4d1e3b376b44d11080c2613bbe3ea7db42 (diff)
downloadFreeBSD-src-388fd1cd29b7a6f04f04de635025c5a39a3dd68a.zip
FreeBSD-src-388fd1cd29b7a6f04f04de635025c5a39a3dd68a.tar.gz
Shift the FPSR contents by the correct amount so feupdateenv() raises
the correct exceptions from the old environment.
Diffstat (limited to 'lib/msun/ia64')
-rw-r--r--lib/msun/ia64/fenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/ia64/fenv.c b/lib/msun/ia64/fenv.c
index 0777acc..95a5809 100644
--- a/lib/msun/ia64/fenv.c
+++ b/lib/msun/ia64/fenv.c
@@ -44,6 +44,6 @@ feupdateenv(const fenv_t *envp)
__stfpsr(&fpsr);
__ldfpsr(*envp);
- feraiseexcept(fpsr & FE_ALL_EXCEPT);
+ feraiseexcept((fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT);
return (0);
}
OpenPOWER on IntegriCloud