Skip to content

Commit

Permalink
x86: Detect F16C with the Intel compiler too
Browse files Browse the repository at this point in the history
The .pro file requires the QMAKE_CFLAGS_F16C to be set to something. So
set it to AVX, as the instructions require the VEX prefix anyway (ICC
has no dedicated option for just F16C).

Change-Id: I27b55fdf514247549455fffd14b171940afd35a2
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
  • Loading branch information
thiagomacieira committed Apr 2, 2017
1 parent 8675e1c commit 8241d51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mkspecs/linux-icc/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ QMAKE_CFLAGS_AVX512PF += -xMIC-AVX512
QMAKE_CFLAGS_AVX512DQ += -xCORE-AVX512
QMAKE_CFLAGS_AVX512BW += -xCORE-AVX512
QMAKE_CFLAGS_AVX512VL += -xCORE-AVX512
QMAKE_CFLAGS_F16C += -xAVX

QMAKE_CXX = icpc
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
Expand Down
1 change: 1 addition & 0 deletions mkspecs/macx-icc/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ QMAKE_CFLAGS_AVX512PF += -xMIC-AVX512
QMAKE_CFLAGS_AVX512DQ += -xCORE-AVX512
QMAKE_CFLAGS_AVX512BW += -xCORE-AVX512
QMAKE_CFLAGS_AVX512VL += -xCORE-AVX512
QMAKE_CFLAGS_F16C += -xAVX

QMAKE_CXX = icpc
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
Expand Down
1 change: 1 addition & 0 deletions mkspecs/win32-icc/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ QMAKE_CFLAGS_AVX512PF += -QxMIC-AVX512
QMAKE_CFLAGS_AVX512DQ += -QxCORE-AVX512
QMAKE_CFLAGS_AVX512BW += -QxCORE-AVX512
QMAKE_CFLAGS_AVX512VL += -QxCORE-AVX512
QMAKE_CFLAGS_F16C = -QxAVX

QMAKE_CXX = $$QMAKE_CC
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS /Zc:forScope
Expand Down

0 comments on commit 8241d51

Please sign in to comment.