From: Petar Jovanovic Date: Fri, 9 Dec 2016 18:35:37 +0000 (+0000) Subject: mips32: allow execution of round_fpu64 test for fpxx X-Git-Tag: svn/VALGRIND_3_13_0~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1287ae86166dcc11952a95e7db658d9354fb3a1d;p=thirdparty%2Fvalgrind.git mips32: allow execution of round_fpu64 test for fpxx Allow execution of none/tests/mips32/round_fpu64 test if it is built with -mfpxx. It gets us more coverage eventually. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16181 --- diff --git a/none/tests/mips32/round_fpu64.c b/none/tests/mips32/round_fpu64.c index a4715f2a03..6db116b0eb 100644 --- a/none/tests/mips32/round_fpu64.c +++ b/none/tests/mips32/round_fpu64.c @@ -72,7 +72,7 @@ const double fs_d[] = { : "$f0" \ ); -#if (__mips==32) && (__mips_isa_rev>=2) && (__mips_fpr==64) +#if (__mips==32) && (__mips_isa_rev>=2) && ((__mips_fpr==64) || (__mips_fpr==xx)) void set_rounding_mode(round_mode_t mode) { switch(mode) { @@ -190,7 +190,7 @@ int FCSRRoundingMode(flt_round_op_t op) int main() { -#if (__mips==32) && (__mips_isa_rev>=2) && (__mips_fpr==64) +#if (__mips==32) && (__mips_isa_rev>=2) && ((__mips_fpr==64) || (__mips_fpr==xx)) flt_round_op_t op; signal(SIGILL, handler); /* Test fpu64 mode. */