[libcxx-commits] [libcxx] [libc++] Ensure that we vectorize algorithms on all Clang-based compilers (PR #132090)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 20 11:20:03 PDT 2025


================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// We don't know how to vectorize algorithms on GCC
+// XFAIL: gcc
+
+// This test ensures that we enable the vectorization of algorithms on the expected
+// platforms.
+
+#include <algorithm>
+
+#if !_LIBCPP_VECTORIZE_ALGORITHMS
----------------
mordante wrote:

Do we have other tests the ensure the macro is always defined? If yes then I'm fine omitting that test here.
Maybe if there is no such test, we should do that in a separate test.

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


More information about the libcxx-commits mailing list