[llvm] 15f1fb5 - [NewPM][test] Use -passes syntax in BoundsChecking lit tests

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 06:17:03 PDT 2021


Author: Bjorn Pettersson
Date: 2021-10-20T15:16:17+02:00
New Revision: 15f1fb5a302d7b4b1405c0414c661ef3de7ff18d

URL: https://github.com/llvm/llvm-project/commit/15f1fb5a302d7b4b1405c0414c661ef3de7ff18d
DIFF: https://github.com/llvm/llvm-project/commit/15f1fb5a302d7b4b1405c0414c661ef3de7ff18d.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/test/Instrumentation/BoundsChecking/many-trap.ll
    llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll
    llvm/test/Instrumentation/BoundsChecking/opt.ll
    llvm/test/Instrumentation/BoundsChecking/phi.ll
    llvm/test/Instrumentation/BoundsChecking/simple-32.ll
    llvm/test/Instrumentation/BoundsChecking/simple.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Instrumentation/BoundsChecking/many-trap.ll b/llvm/test/Instrumentation/BoundsChecking/many-trap.ll
index 58944876e804..e38b1e370a18 100644
--- a/llvm/test/Instrumentation/BoundsChecking/many-trap.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/many-trap.ll
@@ -1,5 +1,5 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
-; RUN: opt < %s -bounds-checking -bounds-checking-single-trap -S | FileCheck -check-prefix=SINGLE %s
+; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
+; RUN: opt < %s -passes=bounds-checking -bounds-checking-single-trap -S | FileCheck -check-prefix=SINGLE %s
 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"
 
 ; CHECK: @f1

diff  --git a/llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll b/llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll
index a6e99586af21..b6d147792a29 100644
--- a/llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
+; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
 @array = internal global [1819 x i16] zeroinitializer, section ".bss,bss"
 @offsets = external dso_local global [10 x i16]
 

diff  --git a/llvm/test/Instrumentation/BoundsChecking/opt.ll b/llvm/test/Instrumentation/BoundsChecking/opt.ll
index d0bb41f555b2..329c1f98258b 100644
--- a/llvm/test/Instrumentation/BoundsChecking/opt.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/opt.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
+; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 
 ; CHECK-LABEL: @sumSize

diff  --git a/llvm/test/Instrumentation/BoundsChecking/phi.ll b/llvm/test/Instrumentation/BoundsChecking/phi.ll
index 6f1c753b88f8..d952f8a99247 100644
--- a/llvm/test/Instrumentation/BoundsChecking/phi.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/phi.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
+; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
 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"
 
 @global = private unnamed_addr constant [10 x i8] c"ola\00mundo\00", align 1

diff  --git a/llvm/test/Instrumentation/BoundsChecking/simple-32.ll b/llvm/test/Instrumentation/BoundsChecking/simple-32.ll
index 0fdb0a48625f..bf45c2680ae4 100644
--- a/llvm/test/Instrumentation/BoundsChecking/simple-32.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/simple-32.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
+; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
 
 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"
 

diff  --git a/llvm/test/Instrumentation/BoundsChecking/simple.ll b/llvm/test/Instrumentation/BoundsChecking/simple.ll
index 994a5dc22717..f00d3b8e2c5f 100644
--- a/llvm/test/Instrumentation/BoundsChecking/simple.ll
+++ b/llvm/test/Instrumentation/BoundsChecking/simple.ll
@@ -1,4 +1,3 @@
-; RUN: opt < %s -bounds-checking -S | FileCheck %s
 ; RUN: opt < %s -passes=bounds-checking -S | FileCheck %s
 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"
 


        


More information about the llvm-commits mailing list