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

Unified Diff: test/win/compiler-flags/enable-enhanced-instruction-set.cc

Issue 872643002: win: 'EnableEnhancedInstructionSet': '5' now enables /arch:AVX2. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 11 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 | « pylib/gyp/msvs_emulation.py ('k') | test/win/compiler-flags/enable-enhanced-instruction-set.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/compiler-flags/enable-enhanced-instruction-set.cc
===================================================================
--- test/win/compiler-flags/enable-enhanced-instruction-set.cc (revision 2027)
+++ test/win/compiler-flags/enable-enhanced-instruction-set.cc (working copy)
@@ -10,10 +10,12 @@
#elif _M_IX86_FP == 1
return "SSE";
#elif _M_IX86_FP == 2
-# if !defined(__AVX__)
+# if defined(__AVX2__)
+ return "AVX2";
+# elif defined(__AVX__)
+ return "AVX";
+# else
return "SSE2";
-# else
- return "AVX";
# endif
#else
return "UNSUPPORTED OPTION";
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/compiler-flags/enable-enhanced-instruction-set.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698