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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 1640913004: Subzero: Mips: Lower some i64 arithmetic instructions (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 years, 11 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 472eeb59acc3ff5941a587ff89f1fec3d6b7c512..57b9329cc0a613f3881decf9c6b51a120c98597d 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -137,6 +137,10 @@ public:
Context.insert<InstMIPS32Add>(Dest, Src0, Src1);
}
+ void _addu(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Addu>(Dest, Src0, Src1);
+ }
+
void _and(Variable *Dest, Variable *Src0, Variable *Src1) {
Context.insert<InstMIPS32And>(Dest, Src0, Src1);
}
@@ -185,6 +189,14 @@ public:
Context.insert<InstMIPS32Sub>(Dest, Src0, Src1);
}
+ void _sltu(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Sltu>(Dest, Src0, Src1);
+ }
+
+ void _subu(Variable *Dest, Variable *Src0, Variable *Src1) {
+ Context.insert<InstMIPS32Subu>(Dest, Src0, Src1);
+ }
+
void _xor(Variable *Dest, Variable *Src0, Variable *Src1) {
Context.insert<InstMIPS32Xor>(Dest, Src0, Src1);
}
@@ -235,6 +247,8 @@ protected:
void lowerAlloca(const InstAlloca *Inst) override;
void lowerArithmetic(const InstArithmetic *Inst) override;
+ void lowerInt64Arithmetic(const InstArithmetic *Inst, Variable *Dest,
+ Operand *Src0, Operand *Src1);
void lowerAssign(const InstAssign *Inst) override;
void lowerBr(const InstBr *Inst) override;
void lowerCall(const InstCall *Inst) override;

Powered by Google App Engine
This is Rietveld 408576698