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

Unified Diff: src/IceInstX8632.h

Issue 640603002: emitIAS for cvtt?.*2.* (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: move check Created 6 years, 2 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/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 eb133c21d16465a5009a7b6aa9dc5e9131ea2b87..abce706ea73c661e6562f3a08ed324fa84dd56ea 100644
--- a/src/IceInstX8632.h
+++ b/src/IceInstX8632.h
@@ -1109,18 +1109,21 @@ private:
// operand needs to be done separately.
class InstX8632Cvt : public InstX8632 {
public:
+ enum CvtVariant { Si2ss, Tss2si, Float2float, Dq2ps, Tps2dq };
static InstX8632Cvt *create(Cfg *Func, Variable *Dest, Operand *Source,
- bool Trunc) {
+ CvtVariant Variant) {
return new (Func->allocate<InstX8632Cvt>())
- InstX8632Cvt(Func, Dest, Source, Trunc);
+ InstX8632Cvt(Func, Dest, Source, Variant);
}
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, Cvt); }
+ bool isTruncating() const { return Variant == Tss2si || Variant == Tps2dq; }
private:
- bool Trunc;
- InstX8632Cvt(Cfg *Func, Variable *Dest, Operand *Source, bool Trunc);
+ CvtVariant Variant;
+ InstX8632Cvt(Cfg *Func, Variable *Dest, Operand *Source, CvtVariant Variant);
InstX8632Cvt(const InstX8632Cvt &) = delete;
InstX8632Cvt &operator=(const InstX8632Cvt &) = delete;
~InstX8632Cvt() override {}
« no previous file with comments | « no previous file | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698