<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/152313>152313</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Headers][X86] Allow AVX/AVX512 float/double add/sub/mul/div/unpck intrinsics to be used in constexpr
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            backend:X86,
            clang:headers,
            constexpr
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RKSimon
      </td>
    </tr>
</table>

<pre>
    We already do this for SSE1/SSE2 intrinsics, but are missing the AVX1/AVX512F intrinsics:
```
_mm256_add_pd / _mm256_add_ps
_mm256_sub_pd / _mm256_sub_ps
_mm256_mul_pd / _mm256_mul_ps
_mm256_div_pd / _mm256_div_ps
_mm256_unpackhi_pd / _mm256_unpackhi_ps
_mm256_unpacklo_pd / _mm256_unpacklo_ps

_mm512_add_pd / _mm512_add_ps
_mm512_sub_pd / _mm512_sub_ps
_mm512_mul_pd / _mm512_mul_ps
_mm512_div_pd / _mm512_div_ps
_mm512_unpackhi_pd / _mm512_unpackhi_ps
_mm512_unpacklo_pd / _mm512_unpacklo_ps
```
(ignore the AVX512 mask/maskz variants for now)

You can use #152305 as reference.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsk89uozoUh5_GbKxG5oATsmBBm6Ir3d2N1NtZVQafgCfGjvwnnc7Tj6AZQtJKSJY-PvD5HfsI71VnEEvCHwnfJSKG3rryv3_3arAmaaz8KP9HKrRDIT-otDT0ytODdXS_f04J1Pv9M1BlglPGq9YTeKJNDFQ4pIPyXpmOhh5p9fI62tXLK0-hXn6QVYRVZM0uD6vehgH4-k1I-XaSlEBNl8RfDR-bO2MiC2OI-s6YyMKQ6nxnTGRhRHMS7bFXd9oVf3G1_dYd8eh-6jyFu4gz8VfjNuJMFsZtxJksjNuIM1kY30S8xV_cm4i32N8dJ4FCdcY6_HsPeAp0EP5IoB6X3_QsnBImfF4rY98JbD_b9MNG2gpDo0dKIEs5ZIxT4anDAzo0La4SWWZym21FgmW64Xm-ZcB50pcHlnGOW7EpWMqQNWssME15UaS8KTZ4SFQJDDgr2DrNIU_5aiO2stnmLaZrtoFckJzhIJReaX0eVtZ1ifI-YjmWkWaJFg1qPw0OQGetpAflfKCTRAAIPBGARrRHNJJk1WuxnmmrhelIVvUoJDp_5db4gL9ObiR8l7hy3PuhiZ0nOdPKB3-tJqigp8H95_IXviP8cdyG72iltX0fuz0PHT1oKwKBWtrYaKRCSgK1j814DlGPL9SZQB3NqT0uBpQGSxscz0BSZehcYhKdLvsQTtMIQ02g7lToY7Nq7UCgHuu8LA8nZ39iO24-dccTqC9dPJfwJwAA__-S4W6T">