[libcxx-commits] [libcxx] [libc++] Add a utility for checking the output of commands (PR #65917)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 20 12:42:28 PST 2024
================
@@ -0,0 +1,78 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// This test is checking the LLVM IR
+// REQUIRES: clang
+
+// RUN: %{cxx} %s %{compile_flags} -O3 -c -S -emit-llvm -o - | %{check-output}
+
+#include <cstdint>
+#include <utility>
+
+bool cmp_equal_i16_i16(int16_t lhs, int16_t rhs) {
----------------
ldionne wrote:
I would agree that `cmp_equal` doesn't seem like the kind of thing that we *must* have codegen checks for. I'm much happier with e.g. the `std::copy` ones though.
https://github.com/llvm/llvm-project/pull/65917
More information about the libcxx-commits
mailing list