[clang] [clang] Constexpr for __builtin_shufflevector and __builtin_convertvector (PR #76615)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 11:52:42 PST 2024


Pol Marcet =?utf-8?q?Sardà?= <polmarcetsarda at gmail.com>,
Pol Marcet =?utf-8?q?Sardà?= <polmarcetsarda at gmail.com>,Pol M
 <polmarcetsarda at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76615 at github.com>


================
@@ -0,0 +1,99 @@
+// RUN: %clang_cc1 -verify -std=c++2a -fsyntax-only %s
+// expected-no-diagnostics
+
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
----------------
sethp wrote:

There might be a "best of both worlds" situation here to check in the generated result. Maybe something like an `#ifdef GEN_TESTS` wrapping the macros, and a second `RUN` pipeline wrapping `clang -DGEN_TESTS -E` and `FileCheck` to validate that the output and contents of this file are in sync?

https://github.com/llvm/llvm-project/pull/76615


More information about the cfe-commits mailing list