[llvm] Verifier: Move test from Assembler to right place and avoid grep (PR #138113)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 03:50:54 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/138113
None
>From 1ce1eebd74cc583578b723dc9f055b6758b96e6b Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Thu, 1 May 2025 12:48:37 +0200
Subject: [PATCH] Verifier: Move test from Assembler to right place and avoid
grep
---
llvm/test/Assembler/2008-09-02-FunctionNotes2.ll | 6 ------
llvm/test/Verifier/2008-09-02-FunctionNotes2.ll | 7 +++++++
2 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 llvm/test/Assembler/2008-09-02-FunctionNotes2.ll
create mode 100644 llvm/test/Verifier/2008-09-02-FunctionNotes2.ll
diff --git a/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll b/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll
deleted file mode 100644
index 47eb011343fbe..0000000000000
--- a/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; Test function notes
-; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Attributes 'noinline and alwaysinline' are incompatible"
-define void @fn1() alwaysinline noinline {
- ret void
-}
-
diff --git a/llvm/test/Verifier/2008-09-02-FunctionNotes2.ll b/llvm/test/Verifier/2008-09-02-FunctionNotes2.ll
new file mode 100644
index 0000000000000..086f58f521d8d
--- /dev/null
+++ b/llvm/test/Verifier/2008-09-02-FunctionNotes2.ll
@@ -0,0 +1,7 @@
+; Test function notes
+; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s
+
+; CHECK: Attributes 'noinline and alwaysinline' are incompatible
+define void @fn1() alwaysinline noinline {
+ ret void
+}
More information about the llvm-commits
mailing list