]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mips: clear fcc bits in fcsr after calling printf()
authorPetar Jovanovic <mips32r2@gmail.com>
Wed, 12 Oct 2016 14:16:08 +0000 (14:16 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Wed, 12 Oct 2016 14:16:08 +0000 (14:16 +0000)
commit517d43c27820c2cba0e79ab856a021943cdf4226
tree04e4b0f49ce744ece05ff9c5f7a3dc07607c37a2
parentffb3146248c31e21592427c8499462424dcf3234
mips: clear fcc bits in fcsr after calling printf()

Clear floating point condition codes in the test after calling external
function (in this case printf), as it might have clobbered fcc bits in
fcsr.

This resolves  none/tests/mips64/round.c failure on some systems.

Patch by Aleksandra Karadzic.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16038
none/tests/mips32/round.c
none/tests/mips64/round.c
none/tests/mips64/rounding_mode.h