[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:35:27 PST 2023


================
@@ -50,11 +50,11 @@ typedef __bf16 __m128bh __attribute__((__vector_size__(16), __aligned__(16)));
 
 /* Define the default attributes for the functions in this file. */
 #define __DEFAULT_FN_ATTRS                                                     \
-  __attribute__((__always_inline__, __nodebug__, __target__("sse2"),           \
-                 __min_vector_width__(128)))
+  __attribute__((__always_inline__, __nodebug__,                               \
+                 __target__("sse2,no-evex512"), __min_vector_width__(128)))
 #define __DEFAULT_FN_ATTRS_MMX                                                 \
-  __attribute__((__always_inline__, __nodebug__, __target__("mmx,sse2"),       \
-                 __min_vector_width__(64)))
+  __attribute__((__always_inline__, __nodebug__,                               \
----------------
KanRobert wrote:

Why does the function targeted at sse2 need no-evex512?

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


More information about the cfe-commits mailing list