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

Unified Diff: runtime/vm/constants_mips.h

Issue 14672037: Implements FPU compare and branching for MIPS simulator, assembler, disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/disassembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/constants_mips.h
===================================================================
--- runtime/vm/constants_mips.h (revision 22705)
+++ runtime/vm/constants_mips.h (working copy)
@@ -249,6 +249,8 @@
kInstrBits = 26,
kBreakCodeShift = 6,
kBreakCodeBits = 20,
+ kFpuCCShift = 8,
+ kFpuCCBits = 3,
kBranchOffsetMask = 0x0000ffff,
};
@@ -378,11 +380,20 @@
enum Cop1Function {
COP1_ADD = 0,
COP1_MOV = 6,
+ COP1_C_F = 0b110000,
+ COP1_C_UN = 0b110001,
+ COP1_C_EQ = 0b110010,
+ COP1_C_UEQ = 0b110011,
+ COP1_C_OLT = 0b110100,
+ COP1_C_ULT = 0b110101,
+ COP1_C_OLE = 0b110110,
+ COP1_C_ULE = 0b110111,
};
enum Cop1Sub {
COP1_MF = 0,
COP1_MT = 4,
+ COP1_BC = 8,
};
enum Format {
@@ -519,6 +530,10 @@
return static_cast<Format>(Bits(kFmtShift, kFmtBits));
}
+ inline int32_t FpuCCField() const {
+ return Bits(kFpuCCShift, kFpuCCBits);
+ }
+
// Instructions are read out of a code stream. The only way to get a
// reference to an instruction is to convert a pc. There is no way
// to allocate or create instances of class Instr.
« no previous file with comments | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/disassembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698