[clang] [Clang][X86] Add tests for AVX512 integer comparison intrinsics to be used in constexpr (PR #169452)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 04:26:02 PDT 2026


================
@@ -646,20 +896,18 @@ __mmask16 test_mm_cmp_epi8_mask(__m128i __a, __m128i __b) {
   return (__mmask16)_mm_cmp_epi8_mask(__a, __b, 0);
 }
 
-TEST_CONSTEXPR(_mm_cmpeq_epi8_mask(
-    ((__m128i)(__v16qi){5, 3, 7, 2, 9, 3, 7, 1, 5, 4, 8, 2, 9, 6, 7, 5}),
-    ((__m128i)(__v16qi){5, 2, 7, 3, 9, 4, 6, 1, 5, 3, 8, 1, 9, 5, 7, 5})
-) == (__mmask16)0xd595);
+// _cmpeq_epu32
+TEST_CONSTEXPR(_mm256_cmpeq_epu32_mask(
----------------
shri-acha wrote:

Yes you're right, but the initial functions for the tests are missing in avx512vl-builtins.c, as I had mentioned in the past, I'll probably have to add the functions and then work on adding the const test cases. 
tbh, I had forgotten about it aswell. I wonder why the tests still passed though.

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


More information about the cfe-commits mailing list