Add configure-time checking for the SSE and AVX features on Windows
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 30 Dec 2011 00:44:16 +0000 (22:44 -0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 15:34:52 +0000 (17:34 +0200)
commitb4525b34074665ed472cd421077a1633110f16a7
treec8b9aa1d8e3991c02400b3b93593812a61346222
parentf9c9d8aaa6684f596cf5675592782d5397e52093
Add configure-time checking for the SSE and AVX features on Windows

Modify configure.exe to run some configure-time tests and check if
the SSE and AVX compiler features are supported.

The tests themselves required a bit of changes to compile with
MSVC. The include in sse4_2.cpp was wrong. And for whatever reason, it
didn't like the volatile variables, which GCC, Clang and ICC have been
happy with. This should produce no effect in compilation, though: even
dead code must be syntactically correct. We're not running the output.

Change-Id: Ibe5d0904a378a7efed853c7215f88a2ddcefb1b3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
17 files changed:
config.tests/common/avx/avx.cpp
config.tests/common/avx/avx.pro
config.tests/common/avx2/avx2.cpp
config.tests/common/avx2/avx2.pro
config.tests/common/sse2/sse2.pro
config.tests/common/sse3/sse3.cpp
config.tests/common/sse3/sse3.pro
config.tests/common/sse4_1/sse4_1.cpp
config.tests/common/sse4_1/sse4_1.pro
config.tests/common/sse4_2/sse4_2.cpp
config.tests/common/sse4_2/sse4_2.pro
config.tests/common/ssse3/ssse3.cpp
config.tests/common/ssse3/ssse3.pro
tools/configure/configureapp.cpp
tools/configure/configureapp.h
tools/configure/environment.cpp
tools/configure/environment.h