[clang] [X86][AVX10] Permit AVX512 options/features used together with AVX10 (PR #71318)

Shengchen Kan via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 8 17:34:18 PST 2023


================
@@ -15,8 +15,12 @@
 #define __AVX2INTRIN_H
 
 /* Define the default attributes for the functions in this file. */
-#define __DEFAULT_FN_ATTRS256 __attribute__((__always_inline__, __nodebug__, __target__("avx2"), __min_vector_width__(256)))
-#define __DEFAULT_FN_ATTRS128 __attribute__((__always_inline__, __nodebug__, __target__("avx2"), __min_vector_width__(128)))
+#define __DEFAULT_FN_ATTRS256                                                  \
+  __attribute__((__always_inline__, __nodebug__,                               \
+                 __target__("avx2,no-evex512"), __min_vector_width__(256)))
----------------
KanRobert wrote:

Why does the function targeted at avx2 need `no-evex512`?

https://github.com/llvm/llvm-project/pull/71318


More information about the cfe-commits mailing list