[NewPM][test] Strickly use -passes in some more lit tests

Removed/replaced RUN lines using legacy PM syntax in favor of using
-passes in lit tests for Float2Int, MetaRenamer, StripDeadPrototypes
and StripSymbols.
This commit is contained in:
Bjorn Pettersson 2021-10-20 17:06:25 +02:00
parent a3ca7dd0ab
commit 3d152bc49d
11 changed files with 5 additions and 11 deletions

View File

@ -1,5 +1,4 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -float2int -S | FileCheck %s
; RUN: opt < %s -passes='float2int' -S | FileCheck %s
;

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -float2int -S | FileCheck %s
; RUN: opt < %s -passes=float2int -S | FileCheck %s
;
; Verify that pass float2int is not run on optnone functions.

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -float2int -float2int-max-integer-bw=256 -S | FileCheck %s
; RUN: opt < %s -passes=float2int -float2int-max-integer-bw=256 -S | FileCheck %s
; CHECK-LABEL: @neg_toolarge
; CHECK: %1 = uitofp i80 %a to fp128

View File

@ -1,5 +1,4 @@
; Make sure @main is left untouched.
; RUN: opt -metarenamer -S %s | FileCheck %s
; RUN: opt -passes=metarenamer -S %s | FileCheck %s
; CHECK: define void @main

View File

@ -1,4 +1,3 @@
; RUN: opt -metarenamer -S < %s | FileCheck %s
; RUN: opt -passes=metarenamer -S < %s | FileCheck %s
; CHECK: target triple {{.*}}

View File

@ -1,4 +1,3 @@
; RUN: opt -strip-dead-prototypes -S -o - < %s | FileCheck %s
; RUN: opt -S -passes=strip-dead-prototypes < %s | FileCheck %s
; CHECK: declare i32 @f

View File

@ -1,4 +1,3 @@
; RUN: opt < %s -strip -S | FileCheck %s
; RUN: opt < %s -passes=strip -S | FileCheck %s
; CHECK: foo

View File

@ -1,4 +1,4 @@
; RUN: opt -strip-dead-debug-info -disable-output < %s
; RUN: opt -passes=strip-dead-debug-info -disable-output < %s
source_filename = "test/Transforms/StripSymbols/2010-08-25-crash.ll"
; Function Attrs: nounwind ssp

View File

@ -1,4 +1,4 @@
; RUN: opt -strip -S < %s | FileCheck %s
; RUN: opt -passes=strip -S < %s | FileCheck %s
; PR10286
@main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]

View File

@ -1,4 +1,4 @@
; RUN: opt -S %s -strip -o - | FileCheck %s
; RUN: opt -S %s -passes=strip -o - | FileCheck %s
; CHECK-NOT: !llvm.dbg.cu
; CHECK-NOT: !llvm.gcov

View File

@ -1,4 +1,3 @@
; RUN: opt -strip-dead-debug-info -verify %s -S | FileCheck %s
; RUN: opt -passes='strip-dead-debug-info,verify' %s -S | FileCheck %s
; CHECK: ModuleID = '{{.*}}'