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

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: git pull 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
« no previous file with comments | « src/IceInstX8664.cpp ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstX86Base.h
diff --git a/src/IceInstX86Base.h b/src/IceInstX86Base.h
index 3b067cf77836c48cb9a27622fe19b3e814fb6b4c..4cfcfd4ea90b9498986e707cb20643098354b6d8 100644
--- a/src/IceInstX86Base.h
+++ b/src/IceInstX86Base.h
@@ -2788,8 +2788,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698