[PATCH] D93597: [X86][SSE] Enable constexpr on some basic SSE intrinsics (RFC)
Thorsten via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 20 09:16:01 PST 2020
tschuett added a comment.
constexpr bool test() {
float A = 1,0;
float B = 2,0;
float C = 3.0;
float D = 4,0;
__m128 AV;
__m128 BV;
__m128 result = _mm_setr_ps(A, B, C, D);
result = _mm_setzero_ps();
result = _mm_xor_ps(AV, BV);
return true;
}
It should help you to test, whether you can call all functions in constant evaluation contexts and normal evaluations. I don't know whether you want to sprinkle some asserts into the test function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93597/new/
https://reviews.llvm.org/D93597
More information about the cfe-commits
mailing list