]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msun tests: use standard floating-point exception flags on lrint and fenv tests
authoralfredo <alfredo@FreeBSD.org>
Wed, 18 Nov 2020 19:23:30 +0000 (19:23 +0000)
committeralfredo <alfredo@FreeBSD.org>
Wed, 18 Nov 2020 19:23:30 +0000 (19:23 +0000)
commit8a955cb2fe9e3c285989cf0d8c219ae6b7667b84
tree840a0107ae709b3aef72afb7f65f78eca40f2aad
parent4349a88b663a329939ddf87f885c67ac4ddaefa5
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