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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 2047043002: Subzero, MIPS32: Floating point comparison (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressing review comments 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/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index 3a83b3d3c645ad347a659adbddcc69ab2101119d..5b722f65b5f9844941394c036f7d6ff8e5e0ab09 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -207,6 +207,62 @@ public:
Context.insert<InstMIPS32Addiu>(Dest, Src, Imm);
}
+ void _c_eq_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_eq_d>(Src0, Src1);
+ }
+
+ void _c_eq_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_eq_s>(Src0, Src1);
+ }
+
+ void _c_ole_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ole_d>(Src0, Src1);
+ }
+
+ void _c_ole_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ole_s>(Src0, Src1);
+ }
+
+ void _c_olt_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_olt_d>(Src0, Src1);
+ }
+
+ void _c_olt_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_olt_s>(Src0, Src1);
+ }
+
+ void _c_ueq_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ueq_d>(Src0, Src1);
+ }
+
+ void _c_ueq_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ueq_s>(Src0, Src1);
+ }
+
+ void _c_ule_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ule_d>(Src0, Src1);
+ }
+
+ void _c_ule_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ule_s>(Src0, Src1);
+ }
+
+ void _c_ult_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ult_d>(Src0, Src1);
+ }
+
+ void _c_ult_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_ult_s>(Src0, Src1);
+ }
+
+ void _c_un_d(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_un_d>(Src0, Src1);
+ }
+
+ void _c_un_s(Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32C_un_s>(Src0, Src1);
+ }
+
void _cvt_d_l(Variable *Dest, Variable *Src) {
Context.insert<InstMIPS32Cvt_d_l>(Dest, Src);
}
@@ -287,6 +343,14 @@ public:
Context.insert<InstMIPS32Mov_s>(Dest, Src);
}
+ void _movf(Variable *Src0, Variable *Src1, Operand *FCC) {
+ Context.insert<InstMIPS32Movf>(Src0, Src1, FCC);
+ }
+
+ void _movt(Variable *Src0, Variable *Src1, Operand *FCC) {
+ Context.insert<InstMIPS32Movt>(Src0, Src1, FCC);
+ }
+
void _mfc1(Variable *Dest, Variable *Src) {
Context.insert<InstMIPS32Mfc1>(Dest, Src);
}
@@ -483,6 +547,14 @@ public:
return makeReg(IceType_i32, RegNum);
}
+ Variable *F32Reg(RegNumT RegNum = RegNumT()) {
+ return makeReg(IceType_f32, RegNum);
+ }
+
+ Variable *F64Reg(RegNumT RegNum = RegNumT()) {
+ return makeReg(IceType_f64, RegNum);
+ }
+
static Type stackSlotType();
Variable *copyToReg(Operand *Src, RegNumT RegNum = RegNumT());
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698