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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 2325703002: Subzero, MIPS32: Intrinsic calls for ABS.fmt and SQRT.fmt (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Set isScalarFloatingType condition 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..777c6301485cfccbe1c9ca3748ba5c71857e6906 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -187,6 +187,14 @@ public:
Context.insert<InstMIPS32Ret>(RA, Src0);
}
+ void _abs_d(Variable *Dest, Variable *Src) {
+ Context.insert<InstMIPS32Abs_d>(Dest, Src);
+ }
+
+ void _abs_s(Variable *Dest, Variable *Src) {
+ Context.insert<InstMIPS32Abs_s>(Dest, Src);
+ }
+
void _add_d(Variable *Dest, Variable *Src0, Variable *Src1) {
Context.insert<InstMIPS32Add_d>(Dest, Src0, Src1);
}
@@ -359,6 +367,14 @@ public:
Context.insert<InstMIPS32Sltu>(Dest, Src0, Src1);
}
+ void _sqrt_d(Variable *Dest, Variable *Src) {
+ Context.insert<InstMIPS32Sqrt_d>(Dest, Src);
+ }
+
+ void _sqrt_s(Variable *Dest, Variable *Src) {
+ Context.insert<InstMIPS32Sqrt_s>(Dest, Src);
+ }
+
void _sra(Variable *Dest, Variable *Src, uint32_t Imm) {
Context.insert<InstMIPS32Sra>(Dest, Src, Imm);
}

Powered by Google App Engine
This is Rietveld 408576698