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

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 12 17:40:38 PST 2023


phoebewang wrote:

@ronlieb The reproducer can compile successfully in trunk: https://godbolt.org/z/hvKhGq9bq
Are you using a downstream compiler? You can check if the "emmintrin.h" has the same change as main trunk.
You can also check it through pre-compile the code:
```
$ clang++ -E fd_log_scalar.cpp -D_CPU | grep '_mm_setzero_pd.*{'
static __inline__ __m128d __attribute__((__always_inline__, __nodebug__, __target__("sse2,no-evex512"), __min_vector_width__(128))) _mm_setzero_pd(void) {
```
Make sure `no-evex512` is in the attribute too.

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


More information about the cfe-commits mailing list