[llvm] [BoundsChecking][test] Reorder RUN lines (PR #122229)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 23:47:18 PST 2025
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/122229
To match output order of update_test_checks.py.
>From 9fcfdfbffbe0603f78529e568270b5550da8f780 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 8 Jan 2025 23:46:56 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
.../BoundsChecking/runtimes.ll | 28 ++++++++++++++++---
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/llvm/test/Instrumentation/BoundsChecking/runtimes.ll b/llvm/test/Instrumentation/BoundsChecking/runtimes.ll
index 7b95a4092af77e..d61627287a31af 100644
--- a/llvm/test/Instrumentation/BoundsChecking/runtimes.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/runtimes.ll
@@ -1,4 +1,7 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 5
+; RUN: opt < %s -passes='bounds-checking<trap;merge>' -S | FileCheck %s --check-prefixes=TR
+; RUN: opt < %s -passes='bounds-checking<rt;merge>' -S | FileCheck %s --check-prefixes=RT
+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s --check-prefixes=TR-NOMERGE
; RUN: opt < %s -passes='bounds-checking<trap>' -S | FileCheck %s --check-prefixes=TR-NOMERGE
; RUN: opt < %s -passes='bounds-checking<rt>' -S | FileCheck %s --check-prefixes=RT-NOMERGE
@@ -129,11 +132,28 @@ define void @f1(i64 %x) nounwind {
ret void
}
+;.
+; TR: attributes #[[ATTR0]] = { nounwind }
+; TR: attributes #[[ATTR1:[0-9]+]] = { cold noreturn nounwind memory(inaccessiblemem: write) }
+; TR: attributes #[[ATTR2]] = { noreturn nounwind }
+;.
+; RT: attributes #[[ATTR0]] = { nounwind }
+;.
+; TR-NOMERGE: attributes #[[ATTR0]] = { nounwind }
+; TR-NOMERGE: attributes #[[ATTR1:[0-9]+]] = { cold noreturn nounwind }
; TR-NOMERGE: attributes #[[ATTR2]] = { nomerge noreturn nounwind }
+;.
+; RT-NOMERGE: attributes #[[ATTR0]] = { nounwind }
; RT-NOMERGE: attributes #[[ATTR1]] = { nomerge nounwind }
+;.
+; RTABORT-NOMERGE: attributes #[[ATTR0]] = { nounwind }
+; RTABORT-NOMERGE: attributes #[[ATTR1:[0-9]+]] = { noreturn nounwind }
; RTABORT-NOMERGE: attributes #[[ATTR2]] = { nomerge noreturn nounwind }
+;.
+; MINRT-NOMERGE: attributes #[[ATTR0]] = { nounwind }
; MINRT-NOMERGE: attributes #[[ATTR1]] = { nomerge nounwind }
+;.
+; MINRTABORT-NOMERGE: attributes #[[ATTR0]] = { nounwind }
+; MINRTABORT-NOMERGE: attributes #[[ATTR1:[0-9]+]] = { noreturn nounwind }
; MINRTABORT-NOMERGE: attributes #[[ATTR2]] = { nomerge noreturn nounwind }
-;
-; TR: attributes #[[ATTR2]] = { noreturn nounwind }
-; RT: attributes #[[ATTR0]] = { nounwind }
+;.
More information about the llvm-commits
mailing list