[clang] [Headers][X86] Allow AVX512 masked shuffles to be used in constexpr (PR #162301)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 7 09:47:31 PDT 2025


================
@@ -12,6 +12,22 @@
 #include <immintrin.h>
 #include "builtin_test_helpers.h"
 
+// constexpr coverage for i32x8/f32x8 broadcasts (DQ)
+
+  
+  TEST_CONSTEXPR(match_v16si(_mm512_mask_broadcast_i32x8(_mm512_setzero_si512(), 0xFFFF, _mm256_set1_epi32(8)),
----------------
RKSimon wrote:

(style) Please move these next to the corresponding test_* function - we want all test coverage for _mm512_mask_broadcast_i32x8 etc. to be close together

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


More information about the cfe-commits mailing list