Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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, |
|
Nico
2015/01/23 06:37:30
whoops! I guess these tests never run on the bots.
| |
| 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() |
| OLD | NEW |