[POWERPC] msun: fix incorrect flag in fesetexceptflag
Fix incorrect mask being used when FE_INVALID bit is wanted by user. The problem was noticed thanks to msun fenv tests. Reviewed by: jhibbits, luporl Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D27201
This commit is contained in:
parent
23f001f742
commit
e7bd4f846f
@ -148,7 +148,7 @@ fesetexceptflag(const fexcept_t *__flagp, int __excepts)
|
||||
union __fpscr __r;
|
||||
|
||||
if (__excepts & FE_INVALID)
|
||||
__excepts |= FE_ALL_EXCEPT;
|
||||
__excepts |= FE_ALL_INVALID;
|
||||
__mffs(&__r);
|
||||
__r.__bits.__reg &= ~__excepts;
|
||||
__r.__bits.__reg |= *__flagp & __excepts;
|
||||
|
Loading…
Reference in New Issue
Block a user