qt5base-lts/mkspecs/macx-icc
Thiago Macieira 280e321e52 Fix detection of F16C for the Intel compiler (again) and Visual Studio
Neither the Intel compiler nor Visual C++ have a dedicated switch to
enable F16C support, like GCC and Clang do. So we used the AVX switch
for that in commit 8241d51f70, as it was
the closest, lowest denominator. That was incorrect and insufficient.

The Intel compiler silently miscompiles the intrinsics with -xAVX,
making calls to out-of-line functions like _mm_cvtps_ph, which don't
exist. So we actually have to use AVX2 support to generate correct code.
That might be a problem later, since Ivy Bridge supports F16C but not
AVX2.

Visual C++ is able to generate F16C code with just -arch:AVX.

Either way, since there's no dedicated command-line switch, there's also
no dedicated preprocessor macro. We're using __AVX2__ for both
compilers, as that's a sufficient condition to indicate a processor that
supports F16C.

Change-Id: I27b55fdf514247549455fffd14b205b8d8b86da7
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2017-04-06 04:15:07 +00:00
..
Info.plist.app qmake: Pick up default bundle prefix from Xcode preferences 2013-10-31 12:33:55 +01:00
Info.plist.dSYM.in qmake: Add support for separate debug info on Apple platforms. 2016-04-14 21:28:54 +00:00
Info.plist.lib Add CFBundleIdentifier to the bundle Info.plist's 2014-11-10 16:04:12 +01:00
qmake.conf Fix detection of F16C for the Intel compiler (again) and Visual Studio 2017-04-06 04:15:07 +00:00
qplatformdefs.h Updated license headers 2016-01-15 12:25:24 +00:00