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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 Google Inc. All rights reserved. 1 // Copyright (c) 2014 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 6
7 static const char* GetArchOption() { 7 static const char* GetArchOption() {
8 #if _M_IX86_FP == 0 8 #if _M_IX86_FP == 0
9 return "IA32"; 9 return "IA32";
10 #elif _M_IX86_FP == 1 10 #elif _M_IX86_FP == 1
11 return "SSE"; 11 return "SSE";
12 #elif _M_IX86_FP == 2 12 #elif _M_IX86_FP == 2
13 # if !defined(__AVX__) 13 # if !defined(__AVX__)
bradn 2015/01/23 18:31:08 FWIW, might be clearer if these were stated in the
Nico 2015/01/23 18:31:44 That's a great suggestion, done.
14 return "SSE2"; 14 return "SSE2";
15 # elif !defined(__AVX2__)
16 return "AVX";
15 # else 17 # else
16 return "AVX"; 18 return "AVX2";
17 # endif 19 # endif
18 #else 20 #else
19 return "UNSUPPORTED OPTION"; 21 return "UNSUPPORTED OPTION";
20 #endif 22 #endif
21 } 23 }
22 24
23 int main() { 25 int main() {
24 printf("/arch:%s\n", GetArchOption()); 26 printf("/arch:%s\n", GetArchOption());
25 return 0; 27 return 0;
26 } 28 }
OLDNEW
« 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