Skip to content

[Headers][X86] Allow PSHUFB byte shuffle intrinsics to be used in constexpr #156612

@RKSimon

Description

@RKSimon

The i8 byte shuffle mask intrinsics can be used in constant expressions:

_mm_shuffle_pi8

_mm_shuffle_epi8 _mm_mask_shuffle_epi8 _mm_maskz_shuffle_epi8
_mm256_shuffle_epi8 _mm256_mask_shuffle_epi8 _mm256_maskz_shuffle_epi8
_mm512_shuffle_epi8 _mm512_mask_shuffle_epi8 _mm512_maskz_shuffle_epi8

These will require handling inside VectorExprEvaluator::VisitCallExpr / InterpretBuiltin

Similar testing to #153102 - single test for each intrinsic, but ensure a range of masks are used (inc some zeroing / unused bits).

Metadata

Metadata

Assignees

Labels

backend:X86clang:bytecodeIssues for the clang bytecode constexpr interpreterclang:frontendLanguage frontend issues, e.g. anything involving "Sema"clang: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