[libcxx-commits] [libcxx] [libc++] Add a utility for checking the output of commands (PR #65917)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 2 08:47:15 PST 2025
================
@@ -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) {
----------------
philnik777 wrote:
I don't remember anymore why I added them. I think there was some potential optimization for them, but we can add them if we get to that.
https://github.com/llvm/llvm-project/pull/65917
More information about the libcxx-commits
mailing list