Switched to arch=x86-64-v* targets when available [skip ci]

This commit is contained in:
Andrew Kane committed 2026-11-21 17:07:55 -08:00
1 parent 13f13fb6bb
commit 40777a2f5e
1 file changed
+4
+4
View File
@@ -6,7 +6,11 @@
#include "vecutils.h"
#if defined(USE_TARGET_CLONES) && !defined(__FMA__)
#if (defined(__GNUC__) && __GNUC__ >= 12) || (defined(__clang_major__) && __clang_major__ >= 18)
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "arch=x86-64-v3", "arch=x86-64-v4")))
#else
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma", "avx512f")))
#endif
#else
#define VECTOR_TARGET_CLONES
#endif