]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msun tests: use standard floating-point exception flags on lrint and fenv tests
authorAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Wed, 18 Nov 2020 19:23:30 +0000 (19:23 +0000)
committerAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Wed, 18 Nov 2020 19:23:30 +0000 (19:23 +0000)
commit758f9acf8ca9db2395d11c4d42f8cd12ac12d663
tree840a0107ae709b3aef72afb7f65f78eca40f2aad
parent30a56f9ef72705f2f3646ce4330cbc20675a465e
msun tests: use standard floating-point exception flags on lrint and fenv tests

Some platforms have additional architecture-specific floating-point flags.
Msun test cases lrint and test_fegsetenv (fenv) expects only standard flags,
so make sure to mask them appropriately.

This makes test pass on PowerPC64.

Reviewed by: jhibbits, ngie
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D27202
lib/msun/tests/fenv_test.c
lib/msun/tests/lrint_test.c