[clang] Allow avx512 bw masked intrinsics to be used in constexpr (PR #162871)

via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 26 06:34:20 PDT 2025


================
@@ -3268,6 +4699,15 @@ __m128i test_mm_maskz_set1_epi16(__mmask8 __M, short __A) {
   // CHECK: select <8 x i1> %{{.*}}, <8 x i16> %{{.*}}, <8 x i16> %{{.*}}
   return _mm_maskz_set1_epi16(__M, __A); 
 }
+TEST_CONSTEXPR(
+  match_v8hi(
+    _mm_maskz_set1_epi16(
+      (__mmask8)0xAA,
+      42
+    ),
+    0,   42, 0, 42,  0,  42, 0, 42
+  )
+);
----------------
GrumpyPigSkin wrote:

I have put them all on a single line

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


More information about the cfe-commits mailing list