Shift the FPSR contents by the correct amount so feupdateenv() raises

the correct exceptions from the old environment.
This commit is contained in:
David Schultz 2004-06-11 02:35:30 +00:00
parent 0d2354c6fd
commit 16919a6cf7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130329

View file

@ -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);
}