<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64500>64500</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Apple x86 processor support list is out of date
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
VoxSciurorum
</td>
</tr>
</table>
<pre>
clang knows that Mac OS 10.12 dropped support for some old x86 CPUs and will use "penryn" as the target architecture when compiling for 10.12 or newer. Apple has continued to drop old generations of x86 CPUs so that Mac OS 12 and 13 only support chips with AVX-2.
I attached a patch to target the minimum x86 CPU supported by newer versions of Mac OS.
The patch uses architecture names like "ivybridge". For the 64 bit only operating systems the equivalent x86-64-v# versions are
OS 10.15 requires x86-64-v2 (dropped support for 32 bit mode and chips without AVX)
OS 12 requires x86-64-v3 (dropped support for all chips without AVX-2)
[apple-x86.diff.txt](https://github.com/llvm/llvm-project/files/12280985/apple-x86.diff.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk81unDwUhq_GbI4GweFnYMFi8kUjfYuqldJG3RpzBtwYm9pmfu6-Msxk2iRddAML5Pc874MPd072mqhhxQMrHiM--8HY5tmcn4ScrbHzGLWmuzRCcd3DizYnB37gHj5xAZ-fIE3iFKGzZpqoAzdPk7EeDsaCMyOBUR2cqxL--_LNAdcdnKRSMDsChjiRthfNEIGHUALPbU8euBWD9CT8bAlOA2kQZpykkrpfkteZxoKmE9kYYDdNimDgDoTRXuqZOvBmoVoIetJkuZdGOzCHO5Aza5fXMrgwphkYrS6vbcQgJwcn6QfYPX_fYAzAkkeW7P4H7j0XA3XAYeJeDGHstUUoNEotx3m8TbwlUgftZaWHI1l3A1sx4jV8fX4d6Jo8O3J_qtF8JAdKviw25fHSWtn1xDAQ7o1dEMocWunXQmZaNOge3MV5Glfr9HOWR65I-8C5KfPNkWF2B-OWfie6_vQCbDhoyb2eQmBYfXQVMlwYRtPRIvgu1Mw-OGVYvx2B7_Ozv-Vzpd5nbvBNKiseeLgom3NVxp08HGJ_9qx4ZFgN3k-OZTuGe4b7XvphbmNhRoZ7pY6312ay5gcJz3B_kIocw32KWCV1VTDcf5B9mx91TdbVWc0jatKyTvO0zlOMhkbwMqMkFdst8WpbUZ5WpajarRDtIcmwjWSDCWZJlWzTPM8yjJOCF2md51ndFSWVNcsTGrlUcQCMje0j6dxMTZkXSRIp3pJyy3IjajrB8pEhhl23zVKqnXvH8kRJ5909xUuvqFkXK9zeyRpBzoW9vooPB0A6CLrNATruKZqtav7Z5cIUZC7MvwIAAP__nat-LA">