* gencode.c (build_instruction): For "FPSQRT", output correct number
authorAndrew Cagney <cagney@redhat.com>
Thu, 16 Oct 1997 03:23:16 +0000 (03:23 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 16 Oct 1997 03:23:16 +0000 (03:23 +0000)
of arguments to Recip.

sim/mips/ChangeLog
sim/mips/gencode.c

index 0e51af95cd3ee1f5a3933094d2f29a8469b4eea4..0ad4fab2f4f6368d6aa766d16a4b1099b91cd36f 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct 16 10:31:39 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gencode.c (build_instruction): For "FPSQRT", output correct
+       number of arguments to Recip.
+       
 Tue Oct 14 17:38:18 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * Makefile.in (interp.o): Depends on sim-main.h
index 30f3031acdc957a24c7d5b0060c005c1b7feec67..f45685de327d69468e3f0e6a9e12983723da45a8 100644 (file)
@@ -3456,7 +3456,9 @@ build_instruction (doisa, features, mips16, insn)
      printf("  if ((format != fmt_single) && (format != fmt_double))\n");
      printf("   SignalException(ReservedInstruction,instruction);\n");
      printf("  else\n");
-     printf("   StoreFPR(destreg,format,%s(SquareRoot(ValueFPR(fs,format),format)));\n",((insn->flags & RECIP) ? "Recip" : ""));
+     printf("   StoreFPR(destreg,format,%s(SquareRoot(ValueFPR(fs,format),format)%s));\n",
+          ((insn->flags & RECIP) ? "Recip" : ""),
+          ((insn->flags & RECIP) ? ",format" : ""));
      break ;
 
     case FPCEIL: