Skip to content

Commit 9c3961f

Browse files
authored
[X86] Clear EVEX512 feature for 128-bit and 256-bit FMA intrinsics (#156472)
This matches the corresponding features defined in avx512vlintrin.h.
1 parent 4aeb290 commit 9c3961f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clang/lib/Headers/fmaintrin.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
#define __FMAINTRIN_H
1616

1717
/* Define the default attributes for the functions in this file. */
18-
#define __DEFAULT_FN_ATTRS128 __attribute__((__always_inline__, __nodebug__, __target__("fma"), __min_vector_width__(128)))
19-
#define __DEFAULT_FN_ATTRS256 __attribute__((__always_inline__, __nodebug__, __target__("fma"), __min_vector_width__(256)))
18+
#define __DEFAULT_FN_ATTRS128 \
19+
__attribute__((__always_inline__, __nodebug__, __target__("fma,no-evex512"), \
20+
__min_vector_width__(128)))
21+
#define __DEFAULT_FN_ATTRS256 \
22+
__attribute__((__always_inline__, __nodebug__, __target__("fma,no-evex512"), \
23+
__min_vector_width__(256)))
2024

2125
#if defined(__cplusplus) && (__cplusplus >= 201103L)
2226
#define __DEFAULT_FN_ATTRS128_CONSTEXPR __DEFAULT_FN_ATTRS128 constexpr

0 commit comments

Comments
 (0)