[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 11 02:20:55 PDT 2025


================
@@ -13,12 +14,14 @@ __m128h test_mm_setzero_ph(void) {
   // CHECK: zeroinitializer
   return _mm_setzero_ph();
 }
+TEST_CONSTEXPR(match_m128(_mm_setzero_ph(), +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f));
----------------
RKSimon wrote:

I suspect you're going to have to add match_m128h/match_m256/match_m512h helpers to correctly match float16 entries

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


More information about the cfe-commits mailing list