]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mips: finetune tests that print FCSR
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 3 Nov 2017 18:10:04 +0000 (19:10 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 3 Nov 2017 18:11:36 +0000 (19:11 +0100)
commit95038d380d60e7af2d04ffdd8432fdebed1990aa
treeec9942629af48c89ee5dca079e33b57f5141a284
parentb8fa6c086f8b2a6a6addcbcd0a8472c09730e7e7
mips: finetune tests that print FCSR

Bits 18 (NAN2008) and 19 (ABS2008) in FCSR are preset by hardware and can
differ between platforms. Hence, we should clear these bits before printing
FCSR value in order to have the same output on different platforms.

This fixes several failures (tests modified by this change) that occur on
MIPS P5600 board. The P5600 is a core that implements MIPS32 Release 5 arch.
none/tests/mips32/round.c
none/tests/mips32/round_fpu64.c
none/tests/mips32/test_fcsr.c
none/tests/mips64/round.c
none/tests/mips64/test_fcsr.c