<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72106>72106</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Regression since "[X86][AVX10] Permit AVX512 options/features used together with AVX10 (#71318)"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
regression
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mstorsjo
</td>
</tr>
</table>
<pre>
Since f229ba4e8d6bb24622b2d41b3c89585cb9005d8d, "[X86][AVX10] Permit AVX512 options/features used together with AVX10 (#71318)", some uses/configurations of x86 intrinsics fail. This happens if trying to configure Qt for x86_64, where the Qt cmake configuration fails with the following error:
```
ERROR: x86 intrinsics support missing. Check your compiler settings. If this is an
error, report at https://bugreports.qt.io with your compiler ID and version,
and this output:
${TEST_x86intrin_OUTPUT}
```
This is a regression, as builds of Clang prior to f229ba4e8d6bb24622b2d41b3c89585cb9005d8d can build the same version of Qt just fine.
The failing test for x86 intrinsics can be reduced down to this:
```c
#include <immintrin.h>
int main(int argc, char **argv) {
__m256i ptrs = _mm256_maskz_loadu_epi64(0, argv);
return 0;
}
```
```console
$ clang -target x86_64-linux-gnu -march=cannonlake -c intrin-regression.c
In file included from intrin-regression.c:1:
In file included from /home/martin/clang-nightly-sat/lib/clang/18/include/immintrin.h:109:
/home/martin/clang-nightly-sat/lib/clang/18/include/avx512vlintrin.h:5552:18: error: always_inline function '_mm256_setzero_si256' requires target feature 'evex512', but would be inlined into function '_mm256_maskz_loadu_epi64' that is compiled without support for 'evex512'
5552 | _mm256_setzero_si256 (),
| ^
1 error generated.
```
CC @phoebewang
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8Vc2Sm8wOfZr2RmUXCINh4YXHHldllWTipLJzNSCgk6ab9I89k6e_1YDn514v7uKrj5piMLSOpKMjiVsrWkW0ZekDSw8L7l2nzba3Thv7Sy9KXb9svwlVETSIRc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