[PowerPC] Fix feholdexcept() on powerpc referencing the wrong struct member

In r355656, endianness handling of the floating point environment was fixed
in the PowerPC code to work as intended.

However, one bit got missed, causing feholdexcept() to mis-save the fenv.

Submitted by:	Renato Riolino <renato.riolino@eldorado.org.br>
Differential Revision:	https://reviews.freebsd.org/D23382
This commit is contained in:
Brandon Bergren 2020-02-02 19:16:52 +00:00
parent b33c19776b
commit 469026a8a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357418

View File

@ -217,7 +217,7 @@ feholdexcept(fenv_t *__envp)
union __fpscr __r;
__mffs(&__r);
*__envp = __r.__d;
*__envp = __r.__bits.__reg;
__r.__bits.__reg &= ~(FE_ALL_EXCEPT | _ENABLE_MASK);
__mtfsf(__r);
return (0);