Skip to content

Commit 15f1fb5

Browse files
committed
[NewPM][test] Use -passes syntax in BoundsChecking lit tests
The legacy PM is deprecated, so use the new PM syntax in lit tests running the bounds-checking pass.
1 parent 57bd67a commit 15f1fb5

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

llvm/test/Instrumentation/BoundsChecking/many-trap.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
2-
; RUN: opt < %s -bounds-checking -bounds-checking-single-trap -S | FileCheck -check-prefix=SINGLE %s
1+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
2+
; RUN: opt < %s -passes=bounds-checking -bounds-checking-single-trap -S | FileCheck -check-prefix=SINGLE %s
33
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
44

55
; CHECK: @f1

llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
1+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
22
@array = internal global [1819 x i16] zeroinitializer, section ".bss,bss"
33
@offsets = external dso_local global [10 x i16]
44

llvm/test/Instrumentation/BoundsChecking/opt.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
1+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
22
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
33

44
; CHECK-LABEL: @sumSize

llvm/test/Instrumentation/BoundsChecking/phi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
1+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
22
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
33

44
@global = private unnamed_addr constant [10 x i8] c"ola\00mundo\00", align 1

llvm/test/Instrumentation/BoundsChecking/simple-32.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
1+
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
22

33
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128"
44

llvm/test/Instrumentation/BoundsChecking/simple.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; RUN: opt < %s -bounds-checking -S | FileCheck %s
21
; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
32
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
43

0 commit comments

Comments
 (0)