Skip to content

[Headers][X86] Allow SSE/AVX integer comparison intrinsics to be used in constexpr #155413

@RKSimon

Description

@RKSimon

Split off from #152490

_mm_cmpeq_epi8 _mm_cmpeq_epi16 _mm_cmpeq_epi32 _mm_cmpeq_epi64
_mm_cmpgt_epi8 _mm_cmpgt_epi16 _mm_cmpgt_epi32 _mm_cmpgt_epi64
_mm_cmplt_epi8 _mm_cmplt_epi16 _mm_cmplt_epi32 _mm_cmplt_epi64

_mm256_cmpeq_epi8 _mm256_cmpeq_epi16 _mm256_cmpeq_epi32 _mm256_cmpeq_epi64
_mm256_cmpgt_epi8 _mm256_cmpgt_epi16 _mm256_cmpgt_epi32 _mm256_cmpgt_epi64

The pre-AVX512 integer comparison intrinsics are all safe to be used in constexpr - use #152296 for reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:X86clang:headersHeaders provided by Clang, e.g. for intrinsicsconstexprAnything related to constant evaluationgood first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions