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

Unified Diff: src/IceInstARM32.h

Issue 1356763004: Subzero. ARM32 Fcmp lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: git pull && addresses comments Created 5 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 | « no previous file | src/IceInstARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index 89e565523c8c7e3fc17e87c415f1c574101ce7de..c196d72cc3161232637dd3276b9944d4d1d1ba35 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -321,10 +321,12 @@ public:
Umull,
Uxt,
Vadd,
+ Vcmp,
Vcvt,
Vdiv,
Vldr,
Vmov,
+ Vmrs,
Vmul,
Vsqrt,
Vsub
@@ -1204,6 +1206,46 @@ private:
Variable *Dest1 = nullptr;
};
+class InstARM32Vcmp final : public InstARM32Pred {
+ InstARM32Vcmp() = delete;
+ InstARM32Vcmp(const InstARM32Vcmp &) = delete;
+ InstARM32Vcmp &operator=(const InstARM32Vcmp &) = delete;
+
+public:
+ static InstARM32Vcmp *create(Cfg *Func, Variable *Src0, Variable *Src1,
+ CondARM32::Cond Predicate) {
+ return new (Func->allocate<InstARM32Vcmp>())
+ InstARM32Vcmp(Func, Src0, Src1, Predicate);
+ }
+ void emit(const Cfg *Func) const override;
+ void emitIAS(const Cfg *Func) const override;
+ void dump(const Cfg *Func) const override;
+ static bool classof(const Inst *Inst) { return isClassof(Inst, Vcmp); }
+
+private:
+ InstARM32Vcmp(Cfg *Func, Variable *Src0, Variable *Src1,
+ CondARM32::Cond Predicate);
+};
+
+/// Copies the FP Status and Control Register the core flags.
+class InstARM32Vmrs final : public InstARM32Pred {
+ InstARM32Vmrs() = delete;
+ InstARM32Vmrs(const InstARM32Vmrs &) = delete;
+ InstARM32Vmrs &operator=(const InstARM32Vmrs &) = delete;
+
+public:
+ static InstARM32Vmrs *create(Cfg *Func, CondARM32::Cond Predicate) {
+ return new (Func->allocate<InstARM32Vmrs>()) InstARM32Vmrs(Func, Predicate);
+ }
+ void emit(const Cfg *Func) const override;
+ void emitIAS(const Cfg *Func) const override;
+ void dump(const Cfg *Func) const override;
+ static bool classof(const Inst *Inst) { return isClassof(Inst, Vmrs); }
+
+private:
+ InstARM32Vmrs(Cfg *Func, CondARM32::Cond Predicate);
+};
+
// Declare partial template specializations of emit() methods that already have
// default implementations. Without this, there is the possibility of ODR
// violations and link errors.
« no previous file with comments | « no previous file | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698