summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-09-29 09:52:37 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-09-29 12:30:35 -0700
commita98cf15ed1b57aee695de01b04a974637b2cd44a (patch)
treeb21d2e8ef448905444f35f973df1ae6343974e2a
parentc6b1c3381461b01255b432468fe38ed5c32b6537 (diff)
qsimd: remove the F16C macro in the Haswell sub-arch testing
F16C is an Ivy Bridge (third generation Intel Core), not Haswell (fourth generation). This allows compiling with -march=native on Ivy Bridge and equivalent systems. Fixes: QTBUG-107072 Pick-to: 6.4 Change-Id: I810d70e579eb4e2c8e45fffd171962f8a8d2bbb1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/corelib/global/qsimd_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h
index 55eeda2f59..be52fa2c95 100644
--- a/src/corelib/global/qsimd_p.h
+++ b/src/corelib/global/qsimd_p.h
@@ -225,9 +225,9 @@ asm(
//
// macOS's fat binaries support the "x86_64h" sub-architecture and the GNU libc
// ELF loader also supports a "haswell/" subdir (e.g., /usr/lib/haswell).
-# define ARCH_HASWELL_MACROS (__AVX2__ + __BMI__ + __BMI2__ + __F16C__ + __FMA__ + __LZCNT__)
+# define ARCH_HASWELL_MACROS (__AVX2__ + __BMI__ + __BMI2__ + __FMA__ + __LZCNT__)
# if ARCH_HASWELL_MACROS != 0
-# if ARCH_HASWELL_MACROS != 6
+# if ARCH_HASWELL_MACROS != 5
# error "Please enable all x86-64-v3 extensions; you probably want to use -march=haswell or -march=x86-64-v3 instead of -mavx2"
# endif
static_assert(ARCH_HASWELL_MACROS, "Undeclared identifiers indicate which features are missing.");