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

Unified Diff: src/IceInstX86Base.h

Issue 1257643004: Subzero. Buildable, non-functional TargetLoweringX8664. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes naming bug in IceInstX8632.h Created 5 years, 5 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
Index: src/IceInstX86Base.h
diff --git a/src/IceInstX86Base.h b/src/IceInstX86Base.h
index a4830eff673f5b2255e65af9a3d27d89e4eb172f..c27e986382deaf7be50d82190df972e807b60e9e 100644
--- a/src/IceInstX86Base.h
+++ b/src/IceInstX86Base.h
@@ -2780,8 +2780,10 @@ template <class Machine> struct Insts {
using StoreP = InstX86StoreP<Machine>;
using StoreQ = InstX86StoreQ<Machine>;
using Nop = InstX86Nop<Machine>;
- using Fld = InstX86Fld<Machine>;
- using Fstp = InstX86Fstp<Machine>;
+ template <typename T = typename InstX86Base<Machine>::Traits>
+ using Fld = typename std::enable_if<T::UsesX87, InstX86Fld<Machine>>::type;
+ template <typename T = typename InstX86Base<Machine>::Traits>
+ using Fstp = typename std::enable_if<T::UsesX87, InstX86Fstp<Machine>>::type;
using Pop = InstX86Pop<Machine>;
using Push = InstX86Push<Machine>;
using Ret = InstX86Ret<Machine>;
« no previous file with comments | « src/IceInstX8664.cpp ('k') | src/IceTargetLoweringX8632.h » ('j') | src/IceTargetLoweringX8632.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698