[clang] [X86][Clang] add remaining AVX512 integer comparison intrinsics to be used in constexpr (PR #228660)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 03:28:59 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 56785 tests passed
* 1718 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGen/X86/avx512bw-builtins.c</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -emit-llvm -o - -Wall -Werror -Wsign-conversion
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -fno-signed-char -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -fno-signed-char -emit-llvm -o - -Wall -Werror -Wsign-conversion
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c++ -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c++ -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -emit-llvm -o - -Wall -Werror -Wsign-conversion
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c:941:16: error: static assertion failed due to requirement '((unsigned int)__builtin_ia32_ucmpw512_mask((__attribute__((__vector_size__(32 * sizeof(short)))) short)(__attribute__((__vector_size__(8 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(8 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(unsigned short)))) unsigned short){1, 9, 3, 9, 5, 9, 7, 9, 9, 1, 9, 3, 9, 5, 9, 7, 0, 32767, 32768, 65535, 0, 32767, 32768, 65535, 0, 1, 32767, 32768, 0, 65534, 32769, 1}))), (__attribute__((__vector_size__(32 * sizeof(short)))) short)(__attribute__((__vector_size__(8 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(8 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(unsigned short)))) unsigned short){9, 2, 9, 4, 9, 6, 9, 8, 2, 9, 4, 9, 6, 9, 8, 9, 0, 32767, 32768, 65535, 0, 32767, 32768, 65535, 65535, 32768, 32768, 65535, 65535, 65535, 65535, 65535}))), (int)(_MM_CMPINT_NLE), (unsigned int)(((unsigned int)65535U)))) == (unsigned int)43605U'
# |   941 | TEST_CONSTEXPR(_mm512_mask_cmpgt_epu16_mask(
# |       | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   942 |     (__mmask32)0x0000FFFFu,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~
# |   943 |     ((__m512i)(__v32hu){
# |       |     ~~~~~~~~~~~~~~~~~~~~
# |   944 |                                1,      9,      3,      9,      5,      9,      7,      9,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   945 |                                9,      1,      9,      3,      9,      5,      9,      7,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   946 |                                0,  32767,  32768,  65535,      0,  32767,  32768,  65535,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   947 |                                0,      1,  32767,  32768,      0,  65534,  32769,      1 }),
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   948 |     ((__m512i)(__v32hu){
# |       |     ~~~~~~~~~~~~~~~~~~~~
# |   949 |                                9,      2,      9,      4,      9,      6,      9,      8,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   950 |                                2,      9,      4,      9,      6,      9,      8,      9,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   951 |                                0,  32767,  32768,  65535,      0,  32767,  32768,  65535,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   952 |                            65535,  32768,  32768,  65535,  65535,  65535,  65535,  65535 })
# |       |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   953 | ) == (__mmask32)0x0000aa55u);
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512bwintrin.h:348:5: note: expanded from macro '_mm512_mask_cmpgt_epu16_mask'
# |   348 |     _mm512_mask_cmp_epu16_mask((k), (A), (B), _MM_CMPINT_GT)
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512bwintrin.h:258:3: note: expanded from macro '_mm512_mask_cmp_epu16_mask'
# |   258 |   ((__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)(__m512i)(a), \
# |       |   ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c:953:3: note: expression evaluates to '21930 == 43605'
# |   941 | TEST_CONSTEXPR(_mm512_mask_cmpgt_epu16_mask(
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   942 |     (__mmask32)0x0000FFFFu,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~
# |   943 |     ((__m512i)(__v32hu){
# |       |     ~~~~~~~~~~~~~~~~~~~~
# |   944 |                                1,      9,      3,      9,      5,      9,      7,      9,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   945 |                                9,      1,      9,      3,      9,      5,      9,      7,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   946 |                                0,  32767,  32768,  65535,      0,  32767,  32768,  65535,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   947 |                                0,      1,  32767,  32768,      0,  65534,  32769,      1 }),
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   948 |     ((__m512i)(__v32hu){
# |       |     ~~~~~~~~~~~~~~~~~~~~
# |   949 |                                9,      2,      9,      4,      9,      6,      9,      8,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   950 |                                2,      9,      4,      9,      6,      9,      8,      9,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   951 |                                0,  32767,  32768,  65535,      0,  32767,  32768,  65535,
# |       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   952 |                            65535,  32768,  32768,  65535,  65535,  65535,  65535,  65535 })
# |       |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   953 | ) == (__mmask32)0x0000aa55u);
# |       | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512bw-builtins.c
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Clang.CodeGen/X86/avx512vlbw-builtins.c</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -emit-llvm -o - -Wall -Werror -Wsign-conversion
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -fno-signed-char -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -fno-signed-char -emit-llvm -o - -Wall -Werror -Wsign-conversion
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx10.1 -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx10.1 -emit-llvm -o - -Wall -Werror -Wsign-conversion
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -x c++ -flax-vector-conversions=none -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -emit-llvm -o - -Wall -Werror -Wsign-conversion | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -x c++ -flax-vector-conversions=none -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c' -triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl -emit-llvm -o - -Wall -Werror -Wsign-conversion
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c:111:16: error: static assertion failed due to requirement '((unsigned int)__builtin_ia32_cmpb256_mask((__attribute__((__vector_size__(32 * sizeof(char)))) char)(__attribute__((__vector_size__(4 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(4 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(signed char)))) signed char){17, -85, 47, -4, 36, 38, -60, 33, -35, 89, -87, 23, 104, 30, -49, 41, 1, 112, -7, 22, 126, 26, -57, -23, 67, -124, -120, 62, 72, 126, 43, -49}))), (__attribute__((__vector_size__(32 * sizeof(char)))) char)(__attribute__((__vector_size__(4 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(4 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(signed char)))) signed char){-48, -107, -125, 53, 78, 121, 92, 17, -51, 79, 116, -21, -52, 26, 63, -71, -86, -99, -11, 13, 75, -120, -113, -87, 115, -94, 74, -82, 117, -6, -47, 103}))), (int)(_MM_CMPINT_NLE), (unsigned int)(((unsigned int)1431655765U)))) == (unsigned int)5574917U'
# |   111 | TEST_CONSTEXPR(_mm256_mask_cmpgt_epi8_mask(
# |       | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   112 |     (__mmask32)0x55555555u,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~
# |   113 |     ((__m256i)(__v32qs){17, -85, 47, -4, 36, 38, -60, 33, -35, 89, -87, 23, 104, 30, -49, 41, 1, 112, -7, 22, 126, 26, -57, -23, 67, -124, -120, 62, 72, 126, 43, -49}),
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   114 |     ((__m256i)(__v32qs){-48, -107, -125, 53, 78, 121, 92, 17, -51, 79, 116, -21, -52, 26, 63, -71, -86, -99, -11, 13, 75, -120, -113, -87, 115, -94, 74, -82, 117, -6, -47, 103})
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   115 | ) == (__mmask32)0x00551105u);
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:151:5: note: expanded from macro '_mm256_mask_cmpgt_epi8_mask'
# |   151 |     _mm256_mask_cmp_epi8_mask((k), (A), (B), _MM_CMPINT_GT)
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:61:3: note: expanded from macro '_mm256_mask_cmp_epi8_mask'
# |    61 |   ((__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)(__m256i)(a), \
# |       |   ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c:115:3: note: expression evaluates to '1079316741 == 5574917'
# |   111 | TEST_CONSTEXPR(_mm256_mask_cmpgt_epi8_mask(
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   112 |     (__mmask32)0x55555555u,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~
# |   113 |     ((__m256i)(__v32qs){17, -85, 47, -4, 36, 38, -60, 33, -35, 89, -87, 23, 104, 30, -49, 41, 1, 112, -7, 22, 126, 26, -57, -23, 67, -124, -120, 62, 72, 126, 43, -49}),
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   114 |     ((__m256i)(__v32qs){-48, -107, -125, 53, 78, 121, 92, 17, -51, 79, 116, -21, -52, 26, 63, -71, -86, -99, -11, 13, 75, -120, -113, -87, 115, -94, 74, -82, 117, -6, -47, 103})
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   115 | ) == (__mmask32)0x00551105u);
# |       | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c:243:16: error: static assertion failed due to requirement '((unsigned int)__builtin_ia32_ucmpb256_mask((__attribute__((__vector_size__(32 * sizeof(char)))) char)(__attribute__((__vector_size__(4 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(4 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(unsigned char)))) unsigned char){10, 1, 2, 3, 4, 20, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 200}))), (__attribute__((__vector_size__(32 * sizeof(char)))) char)(__attribute__((__vector_size__(4 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(4 * sizeof(long long)))) long long)(__attribute__((__vector_size__(32 * sizeof(unsigned char)))) unsigned char){10, 99, 99, 99, 99, 20, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 200}))), (int)(_MM_CMPINT_EQ), (unsigned int)(((unsigned int)34359738353UL)))) == (unsigned int)33U'
# |   243 | TEST_CONSTEXPR(_mm256_mask_cmpeq_epu8_mask(
# |       | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   244 |     (__mmask32)0x7FFFFFFF1u,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~
# |   245 |     ((__m256i)(__v32qu){ 10,1,2,3,4,20,6,7, 8,9,10,11,12,13,14,15, 16,17,18,19,20,21,22,23, 24,25,26,27,28,29,30,200 }),
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   246 |     ((__m256i)(__v32qu){ 10,99,99,99,99,20,99,99, 99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,200 })
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   247 | ) == (__mmask32)0x00000021u);
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:193:5: note: expanded from macro '_mm256_mask_cmpeq_epu8_mask'
# |   193 |     _mm256_mask_cmp_epu8_mask((k), (A), (B), _MM_CMPINT_EQ)
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:71:3: note: expanded from macro '_mm256_mask_cmp_epu8_mask'
# |    71 |   ((__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)(__m256i)(a), \
# |       |   ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c:247:3: note: expression evaluates to '2147483681 == 33'
# |   243 | TEST_CONSTEXPR(_mm256_mask_cmpeq_epu8_mask(
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   244 |     (__mmask32)0x7FFFFFFF1u,
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~
# |   245 |     ((__m256i)(__v32qu){ 10,1,2,3,4,20,6,7, 8,9,10,11,12,13,14,15, 16,17,18,19,20,21,22,23, 24,25,26,27,28,29,30,200 }),
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   246 |     ((__m256i)(__v32qu){ 10,99,99,99,99,20,99,99, 99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,200 })
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   247 | ) == (__mmask32)0x00000021u);
# |       | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #define TEST_CONSTEXPR(...) static_assert(__VA_ARGS__)
# |       |                                           ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c:400:16: error: static assertion failed due to requirement '((unsigned short)__builtin_ia32_ucmpb128_mask((__attribute__((__vector_size__(16 * sizeof(char)))) char)(__attribute__((__vector_size__(2 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(2 * sizeof(long long)))) long long)(__attribute__((__vector_size__(16 * sizeof(unsigned char)))) unsigned char){165, 179, 185, 74, 129, 89, 42, 170, 195, 35, 151, 20, 240, 155, 245, 254}))), (__attribute__((__vector_size__(16 * sizeof(char)))) char)(__attribute__((__vector_size__(2 * sizeof(long long)))) long long)((((__attribute__((__vector_size__(2 * sizeof(long long)))) long long)(__attribute__((__vector_size__(16 * sizeof(unsigned char)))) unsigned char){104, 175, 83, 169, 96, 144, 164, 61, 6, 46, 150, 36, 177, 188, 77, 147}))), (int)(_MM_CMPINT_NLT), (unsigned short)(((unsigned short)21845U)))) == (unsigned short)20757U'
# |   400 | TEST_CONSTEXPR(_mm_mask_cmpge_epu8_mask(
# |       | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
# |   401 |     (__mmask16)0x5555u,
# |       |     ~~~~~~~~~~~~~~~~~~~
# |   402 |     ((__m128i)(__v16qu){165, 179, 185, 74, 129, 89, 42, 170, 195, 35, 151, 20, 240, 155, 245, 254}),
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   403 |     ((__m128i)(__v16qu){104, 175, 83, 169, 96, 144, 164, 61, 6, 46, 150, 36, 177, 188, 77, 147})
# |       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   404 | ) == (__mmask16)0x5115u);
# |       | ~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:172:5: note: expanded from macro '_mm_mask_cmpge_epu8_mask'
# |   172 |     _mm_mask_cmp_epu8_mask((k), (A), (B), _MM_CMPINT_GE)
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\24\include\avx512vlbwintrin.h:51:3: note: expanded from macro '_mm_mask_cmp_epu8_mask'
# |    51 |   ((__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)(__m128i)(a), \
# |       |   ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\builtin_test_helpers.h:298:43: note: expanded from macro 'TEST_CONSTEXPR'
# |   298 | #de
# | ...
# `---data was truncated (10240/19402) (change limit with -D output_limit=N)
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\X86\avx512vlbw-builtins.c
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list