| Issue |
168741
|
| Summary |
[Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PCLMULQDQ intrinsics to be used in constexpr
|
| Labels |
good first issue,
backend:X86,
clang:frontend,
clang:headers,
constexpr,
clang:bytecode
|
| Assignees |
|
| Reporter |
RKSimon
|
```
__m128i _mm_clmulepi64_si128 (__m128i a, __m128i b, const int imm8)
__m256i _mm256_clmulepi64_epi128 (__m256i b, __m256i c, const int Imm8)
__m512i _mm512_clmulepi64_epi128 (__m512i b, __m512i c, const int Imm8)
```
Now that we have #168527 we should be able to easily constant fold PCLMULQDQ builtins for constant expressions
Ensure you consult https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=clmul and handle the imm8 mask correctly, preferably with offline testing.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs