[PATCH] D93597: [X86][SSE] Enable constexpr on some basic SSE intrinsics (RFC)
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 4 09:44:11 PST 2021
RKSimon added inline comments.
================
Comment at: clang/test/CodeGen/X86/sse-builtins.c:815
+// Test constexpr handling.
+#if defined(__cplusplus) && (__cplusplus >= 201103L)
+constexpr __m128 test_constexpr_mm_add_ps(__m128 A, __m128 B) {
----------------
pengfei wrote:
> What are these tests testing for?
These are the more basic c++11 tests to ensure that the intrinsics can be used in a constexpr - without c++14 we can't actually create a __m128 type, so everything is on-the-fly.
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