* mips.igen (MSUB): Fix to work like MADD.

* gencode.c (MSUB): Similarly.
This commit is contained in:
Jeff Law 1997-12-11 00:11:04 +00:00
parent 70a46de24e
commit 23850e9219
3 changed files with 476 additions and 568 deletions

View File

@ -1,3 +1,8 @@
Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
* mips.igen (MSUB): Fix to work like MADD.
* gencode.c (MSUB): Similarly.
start-sanitize-vr5400
Tue Dec 9 12:02:12 1997 Andrew Cagney <cagney@b1.cygnus.com>

View File

@ -3585,7 +3585,12 @@ build_instruction (doisa, features, mips16, insn)
fprintf(stderr,"Error: Invalid data size %d for FPSUB operation\n",GETDATASIZEINSN(insn));
exit(1);
}
printf(" StoreFPR(destreg,%s,%s(Sub(Multiply(ValueFPR(fs,%s),ValueFPR(ft,%s),%s),ValueFPR(fr,%s),%s),%s));\n",type,((insn->flags & NOT) ? "Negate" : ""),type,type,type,type,type,type);
if (insn->flags & NOT)
printf (" StoreFPR(destreg,%s,Negate(Sub(Multiply(ValueFPR(fs,%s),ValueFPR(ft,%s),%s),ValueFPR(fr,%s),%s),%s));\n",
type, type, type, type, type, type, type);
else
printf (" StoreFPR(destreg,%s,Sub(Multiply(ValueFPR(fs,%s),ValueFPR(ft,%s),%s),ValueFPR(fr,%s),%s));\n",
type, type, type, type, type, type);
} else {
printf(" if ((format != fmt_single) && (format != fmt_double))\n");
printf(" SignalException(ReservedInstruction,instruction);\n");

File diff suppressed because it is too large Load Diff