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

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: Addressing comments + O2 test for SQRT ignored 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
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index 8ccc9829eb4622c339071bdde219ab7a3998f5f1..3a83b3d3c645ad347a659adbddcc69ab2101119d 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);
}
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698