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

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: Ready for review 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
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index b555b9bcf6ae62b5afca1f6b00bc24b3921b5350..ea2a9c8b9ec21d07280757603fc345cdafc9d569 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -199,6 +199,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);
}
@@ -279,6 +335,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);
}
@@ -467,6 +531,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());

Powered by Google App Engine
This is Rietveld 408576698