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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 2337023003: Subzero, MIPS32: lowerSelect for i1, i8, i16, i32, f32, f64 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 3a83b3d3c645ad347a659adbddcc69ab2101119d..c726cf20585683684541a992d81f9b061f1b1d5c 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -263,6 +263,18 @@ public:
Context.insert<InstMIPS32Lui>(Dest, Src, Reloc);
}
+ void _mfc1(Variable *Dest, Variable *Src) {
+ Context.insert<InstMIPS32Mfc1>(Dest, Src);
+ }
+
+ void _mfhi(Variable *Dest, Operand *Src) {
+ Context.insert<InstMIPS32Mfhi>(Dest, Src);
+ }
+
+ void _mflo(Variable *Dest, Operand *Src) {
+ Context.insert<InstMIPS32Mflo>(Dest, Src);
+ }
+
void _mov(Variable *Dest, Operand *Src0) {
assert(Dest != nullptr);
// Variable* Src0_ = llvm::dyn_cast<Variable>(Src0);
@@ -287,16 +299,28 @@ public:
Context.insert<InstMIPS32Mov_s>(Dest, Src);
}
- void _mfc1(Variable *Dest, Variable *Src) {
- Context.insert<InstMIPS32Mfc1>(Dest, Src);
+ void _movn(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn>(Dest, Src0, Src1);
}
- void _mfhi(Variable *Dest, Operand *Src) {
- Context.insert<InstMIPS32Mfhi>(Dest, Src);
+ void _movn_d(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn_d>(Dest, Src0, Src1);
}
- void _mflo(Variable *Dest, Operand *Src) {
- Context.insert<InstMIPS32Mflo>(Dest, Src);
+ void _movn_s(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn_s>(Dest, Src0, Src1);
+ }
+
+ void _movz(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movz>(Dest, Src0, Src1);
+ }
+
+ void _movz_d(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movz_d>(Dest, Src0, Src1);
+ }
+
+ void _movz_s(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movz_s>(Dest, Src0, Src1);
}
void _mtc1(Variable *Dest, Variable *Src) {

Powered by Google App Engine
This is Rietveld 408576698