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

Side by Side Diff: test/win/gyptest-cl-enable-enhanced-instruction-set.py

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
« no previous file with comments | « test/win/compiler-flags/enable-enhanced-instruction-set.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2014 Google Inc. All rights reserved. 3 # Copyright (c) 2014 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Test VCCLCompilerTool EnableEnhancedInstructionSet setting. 8 Test VCCLCompilerTool EnableEnhancedInstructionSet setting.
9 """ 9 """
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 test.build('enable-enhanced-instruction-set.gyp', test.ALL, chdir=CHDIR) 22 test.build('enable-enhanced-instruction-set.gyp', test.ALL, chdir=CHDIR)
23 23
24 test.run_built_executable('sse_extensions', chdir=CHDIR, 24 test.run_built_executable('sse_extensions', chdir=CHDIR,
25 stdout='/arch:SSE\n') 25 stdout='/arch:SSE\n')
26 test.run_built_executable('sse2_extensions', chdir=CHDIR, 26 test.run_built_executable('sse2_extensions', chdir=CHDIR,
27 stdout='/arch:SSE2\n') 27 stdout='/arch:SSE2\n')
28 28
29 # /arch:AVX introduced in VS2010, but MSBuild support lagged until 2012. 29 # /arch:AVX introduced in VS2010, but MSBuild support lagged until 2012.
30 if os.path.exists(test.built_file_path('avx_extensions')): 30 if os.path.exists(test.built_file_path('avx_extensions')):
31 test.run_built_executable('no_extensions', chdir=CHDIR, 31 test.run_built_executable('avx_extensions', chdir=CHDIR,
32 stdout='/arch:AVX\n') 32 stdout='/arch:AVX\n')
33 33
34 # /arch:IA32 introduced in VS2012. 34 # /arch:IA32 introduced in VS2012.
35 if os.path.exists(test.built_file_path('no_extensions')): 35 if os.path.exists(test.built_file_path('no_extensions')):
36 test.run_built_executable('no_extensions', chdir=CHDIR, 36 test.run_built_executable('no_extensions', chdir=CHDIR,
37 stdout='/arch:IA32\n') 37 stdout='/arch:IA32\n')
38 38
39 # /arch:AVX2 introduced in VS2013r2.
40 if os.path.exists(test.built_file_path('avx2_extensions')):
41 test.run_built_executable('avx2_extensions', chdir=CHDIR,
42 stdout='/arch:AVX2\n')
43
39 test.pass_test() 44 test.pass_test()
OLDNEW
« no previous file with comments | « test/win/compiler-flags/enable-enhanced-instruction-set.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698