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

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: 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
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index 717b7d9f15cd73b53361170c66adbc0b907b0591..8029386576e3d9f16dbe0a4cde8576bc6c5541d4 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -319,6 +319,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);
@@ -347,20 +359,32 @@ public:
Context.insert<InstMIPS32Movf>(Src0, Src1, FCC);
}
+ void _movn(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn>(Dest, Src0, Src1);
+ }
+
+ void _movn_d(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn_d>(Dest, Src0, Src1);
+ }
+
+ void _movn_s(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movn_s>(Dest, Src0, Src1);
+ }
+
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);
+ void _movz(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movz>(Dest, Src0, Src1);
}
- void _mfhi(Variable *Dest, Operand *Src) {
- Context.insert<InstMIPS32Mfhi>(Dest, Src);
+ void _movz_d(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Movz_d>(Dest, Src0, Src1);
}
- void _mflo(Variable *Dest, Operand *Src) {
- Context.insert<InstMIPS32Mflo>(Dest, Src);
+ 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