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

Unified Diff: src/IceInstX8632.h

Issue 550723002: Subzero: Use cvttss2si and similar instead of cvtss2si for fp->int casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use truncating conversion instruction for fp to int conversions Created 6 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 | « crosstest/test_cast_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 834e061374b28acc6c4e679c079eea49153f0cd6..04902d2401e4d7c73b5c56afb4e835a1fdb38826 100644
--- a/src/IceInstX8632.h
+++ b/src/IceInstX8632.h
@@ -863,16 +863,18 @@ private:
// operand needs to be done separately.
class InstX8632Cvt : public InstX8632 {
public:
- static InstX8632Cvt *create(Cfg *Func, Variable *Dest, Operand *Source) {
+ static InstX8632Cvt *create(Cfg *Func, Variable *Dest, Operand *Source,
+ bool Trunc) {
return new (Func->allocate<InstX8632Cvt>())
- InstX8632Cvt(Func, Dest, Source);
+ InstX8632Cvt(Func, Dest, Source, Trunc);
}
virtual void emit(const Cfg *Func) const;
virtual void dump(const Cfg *Func) const;
static bool classof(const Inst *Inst) { return isClassof(Inst, Cvt); }
private:
- InstX8632Cvt(Cfg *Func, Variable *Dest, Operand *Source);
+ bool Trunc;
+ InstX8632Cvt(Cfg *Func, Variable *Dest, Operand *Source, bool Trunc);
InstX8632Cvt(const InstX8632Cvt &) LLVM_DELETED_FUNCTION;
InstX8632Cvt &operator=(const InstX8632Cvt &) LLVM_DELETED_FUNCTION;
virtual ~InstX8632Cvt() {}
« no previous file with comments | « crosstest/test_cast_main.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698