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

Unified Diff: src/IceInstX8632.h

Issue 443203003: Subzero: Use scalar arithmetic when no vector instruction exists. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: TODO(stichnot) Created 6 years, 4 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 | « crosstest/test_arith_main.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstX8632.h
diff --git a/src/IceInstX8632.h b/src/IceInstX8632.h
index 18f0dde9508ab199960718a729725c93b9b7b913..1aa79094676a378d616cde6e7de8b21531c34b9c 100644
--- a/src/IceInstX8632.h
+++ b/src/IceInstX8632.h
@@ -144,7 +144,7 @@ public:
Bsr,
Bswap,
Call,
- Cdq,
+ Cbwdq,
Cmov,
Cmpps,
Cmpxchg,
@@ -689,22 +689,22 @@ private:
virtual ~InstX8632Shrd() {}
};
-// Cdq instruction - sign-extend eax into edx
-class InstX8632Cdq : public InstX8632 {
+// Cbdwq instruction - wrapper for cbw, cwd, or cdq
+class InstX8632Cbwdq : public InstX8632 {
public:
- static InstX8632Cdq *create(Cfg *Func, Variable *Dest, Operand *Source) {
- return new (Func->allocate<InstX8632Cdq>())
- InstX8632Cdq(Func, Dest, Source);
+ static InstX8632Cbwdq *create(Cfg *Func, Variable *Dest, Operand *Source) {
+ return new (Func->allocate<InstX8632Cbwdq>())
+ InstX8632Cbwdq(Func, Dest, Source);
}
virtual void emit(const Cfg *Func) const;
virtual void dump(const Cfg *Func) const;
- static bool classof(const Inst *Inst) { return isClassof(Inst, Cdq); }
+ static bool classof(const Inst *Inst) { return isClassof(Inst, Cbwdq); }
private:
- InstX8632Cdq(Cfg *Func, Variable *Dest, Operand *Source);
- InstX8632Cdq(const InstX8632Cdq &) LLVM_DELETED_FUNCTION;
- InstX8632Cdq &operator=(const InstX8632Cdq &) LLVM_DELETED_FUNCTION;
- virtual ~InstX8632Cdq() {}
+ InstX8632Cbwdq(Cfg *Func, Variable *Dest, Operand *Source);
+ InstX8632Cbwdq(const InstX8632Cbwdq &) LLVM_DELETED_FUNCTION;
+ InstX8632Cbwdq &operator=(const InstX8632Cbwdq &) LLVM_DELETED_FUNCTION;
+ virtual ~InstX8632Cbwdq() {}
};
// Conditional move instruction.
« no previous file with comments | « crosstest/test_arith_main.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698