]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32: allow execution of round_fpu64 test for fpxx
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 9 Dec 2016 18:35:37 +0000 (18:35 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 9 Dec 2016 18:35:37 +0000 (18:35 +0000)
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

none/tests/mips32/round_fpu64.c

index a4715f2a03124cb262adacc6ed7b025304286612..6db116b0ebc208c55a19d9724d1728f5f22f9093 100644 (file)
@@ -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. */