[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
Sun Sep 20 00:42:02 PDT 2026
shri-acha wrote:
On running the tests, I was able to evaluate that the failing test on
1. `avx512bw-builtins.c` are:
```
╭───┬──────┬─────────────────────────────────────────╮
│ # │ line │ text │
├───┼──────┼─────────────────────────────────────────┤
│ 0 │ 693 │ TEST_CONSTEXPR(_mm512_cmpgt_epi8_mask( │
│ 1 │ 719 │ TEST_CONSTEXPR(_mm512_cmpgt_epi16_mask( │
│ 2 │ 803 │ TEST_CONSTEXPR(_mm512_cmpgt_epu8_mask( │
│ 3 │ 863 │ TEST_CONSTEXPR(_mm512_cmpge_epi8_mask( │
│ 4 │ 895 │ TEST_CONSTEXPR(_mm512_cmpge_epu8_mask( │
│ 5 │ 929 │ TEST_CONSTEXPR(_mm512_cmpge_epi16_mask( │
│ 6 │ 955 │ TEST_CONSTEXPR(_mm512_cmpge_epu16_mask( │
╰───┴──────┴─────────────────────────────────────────╯
```
2. `avx512f-builtins.c` are:
```
╭───┬──────┬─────────────────────────────────────────╮
│ # │ line │ text │
├───┼──────┼─────────────────────────────────────────┤
│ 0 │ 1380 │ TEST_CONSTEXPR(_mm512_cmpgt_epi32_mask( │
│ 1 │ 1409 │ TEST_CONSTEXPR(_mm512_cmpgt_epi64_mask( │
│ 2 │ 2629 │ TEST_CONSTEXPR(_mm512_cmpge_epi32_mask( │
│ 3 │ 2652 │ TEST_CONSTEXPR(_mm512_cmpge_epi64_mask( │
│ 4 │ 2678 │ TEST_CONSTEXPR(_mm512_cmpge_epu32_mask( │
│ 5 │ 2702 │ TEST_CONSTEXPR(_mm512_cmpge_epu64_mask( │
│ 6 │ 2728 │ TEST_CONSTEXPR(_mm512_cmpgt_epu32_mask( │
│ 7 │ 2753 │ TEST_CONSTEXPR(_mm512_cmpgt_epu64_mask( │
╰───┴──────┴─────────────────────────────────────────╯
```
These are with using the:
`build/bin/llvm-lit -sv clang/test/CodeGen/X86/*.c`
https://github.com/llvm/llvm-project/pull/169452
More information about the cfe-commits
mailing list