[clang] [X86][RFC] Refactor the SSE intrinsics constexpr tests to simplify future expansion (PR #112578)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 18 08:11:07 PDT 2024
================
@@ -6,13 +6,23 @@
#include <immintrin.h>
+#if defined(__cplusplus) && (__cplusplus >= 201103L)
+constexpr bool match_m128(__m128 v, float x, float y, float z, float w) {
+ return v[0] == x && v[1] == y && v[2] == z && v[3] == w;
----------------
RKSimon wrote:
I'd prefer to keep the matching code simple if we can - since these tests are testing the clang C++ frontend we probably shouldn't make it anymore complicated than necessary.
https://github.com/llvm/llvm-project/pull/112578
More information about the cfe-commits
mailing list