From 15f1fb5a302d7b4b1405c0414c661ef3de7ff18d Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Wed, 20 Oct 2021 12:34:45 +0200 Subject: [PATCH] [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. --- llvm/test/Instrumentation/BoundsChecking/many-trap.ll | 4 ++-- llvm/test/Instrumentation/BoundsChecking/many-traps-2.ll | 2 +- llvm/test/Instrumentation/BoundsChecking/opt.ll | 2 +- llvm/test/Instrumentation/BoundsChecking/phi.ll | 2 +- llvm/test/Instrumentation/BoundsChecking/simple-32.ll | 2 +- llvm/test/Instrumentation/BoundsChecking/simple.ll | 1 - 6 files changed, 6 insertions(+), 7 deletions(-) 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"