Skip to content

[Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow SSE/AVX/AVX512 square root intrinsics to be used in constexpr #160516

@RKSimon

Description

@RKSimon
_mm_sqrt_pd / _mm_mask_sqrt_pd / _mm_maskz_sqrt_pd
_mm_sqrt_ps / _mm_mask_sqrt_ps / _mm_maskz_sqrt_ps
_mm256_sqrt_pd /_mm256_mask_sqrt_pd / _mm256_maskz_sqrt_pd
_mm256_sqrt_ps /_mm256_mask_sqrt_ps / _mm256_maskz_sqrt_ps
_mm512_sqrt_pd / _mm512_mask_sqrt_pd / _mm512_maskz_sqrt_pd
_mm512_sqrt_ps / _mm512_mask_sqrt_ps / _mm512_maskz_sqrt_ps

These should probably be limited to non-constrained fp cases

NOTE: We are NOT intending to handle the related rcp and rsqrt estimate intrinsics

Metadata

Metadata

Assignees

Labels

backend:X86clang:bytecodeIssues for the clang bytecode constexpr interpreterclang: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