Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(687)

Unified Diff: src/mips/disasm-mips.cc

Issue 2313623002: MIPS: Implement MADD.S, MSUB, MADDF and MSUBF. (Closed)
Patch Set: Added blocks and unreachable sections. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/constants-mips.h ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/disasm-mips.cc
diff --git a/src/mips/disasm-mips.cc b/src/mips/disasm-mips.cc
index bd07874bd67de689859e7c8aa1c6420c92dfecba..afeb9a4c1770504f170fef9e8363f0479ab4f419 100644
--- a/src/mips/disasm-mips.cc
+++ b/src/mips/disasm-mips.cc
@@ -918,6 +918,12 @@ void Decoder::DecodeTypeRegisterSRsType(Instruction* instr) {
case CVT_D_S:
Format(instr, "cvt.d.'t 'fd, 'fs");
break;
+ case MADDF_S:
+ Format(instr, "maddf.s 'fd, 'fs, 'ft");
+ break;
+ case MSUBF_S:
+ Format(instr, "msubf.s 'fd, 'fs, 'ft");
+ break;
default:
Format(instr, "unknown.cop1.'t");
break;
@@ -928,7 +934,17 @@ void Decoder::DecodeTypeRegisterSRsType(Instruction* instr) {
void Decoder::DecodeTypeRegisterDRsType(Instruction* instr) {
if (!DecodeTypeRegisterRsType(instr)) {
- Format(instr, "unknown.cop1.'t");
+ switch (instr->FunctionFieldRaw()) {
+ case MADDF_D:
+ Format(instr, "maddf.d 'fd, 'fs, 'ft");
+ break;
+ case MSUBF_D:
+ Format(instr, "msubf.d 'fd, 'fs, 'ft");
+ break;
+ default:
+ Format(instr, "unknown.cop1.'t");
+ break;
+ }
}
}
@@ -1360,9 +1376,18 @@ void Decoder::DecodeTypeRegister(Instruction* instr) {
break;
case COP1X:
switch (instr->FunctionFieldRaw()) {
+ case MADD_S:
+ Format(instr, "madd.s 'fd, 'fr, 'fs, 'ft");
+ break;
case MADD_D:
Format(instr, "madd.d 'fd, 'fr, 'fs, 'ft");
break;
+ case MSUB_S:
+ Format(instr, "msub.s 'fd, 'fr, 'fs, 'ft");
+ break;
+ case MSUB_D:
+ Format(instr, "msub.d 'fd, 'fr, 'fs, 'ft");
+ break;
default:
UNREACHABLE();
}
« no previous file with comments | « src/mips/constants-mips.h ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698