Skip to content

Commit 5cfd815

Browse files
committed
[NFC] Port codegen X86 tests that invoke opt to -passes= syntax
1 parent 09c3fbf commit 5cfd815

16 files changed

+19
-19
lines changed

llvm/test/CodeGen/X86/GC/deadargelim.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -deadargelim
1+
; RUN: opt < %s -passes=deadargelim
22

33
declare void @llvm.gcroot(ptr, ptr)
44

llvm/test/CodeGen/X86/GC/inline.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep example
1+
; RUN: opt < %s -passes='cgscc(inline)' -S | grep example
22

33
%IntArray = type { i32, [0 x ptr] }
44

llvm/test/CodeGen/X86/GC/inline2.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep sample
2-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep example
1+
; RUN: opt < %s -passes='cgscc(inline)' -S | grep sample
2+
; RUN: opt < %s -passes='cgscc(inline)' -S | grep example
33

44
%IntArray = type { i32, [0 x ptr] }
55

llvm/test/CodeGen/X86/block-placement.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -mtriple=i686-linux -pre-RA-sched=source < %s | FileCheck %s
2-
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -debugify < %s
2+
; RUN: opt -disable-output -passes=debugify < %s
33

44
declare void @error(i32 %i, i32 %a, i32 %b)
55

llvm/test/CodeGen/X86/constant-hoisting-bfi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax -consthoist -mtriple=x86_64-unknown-linux-gnu -consthoist-with-block-frequency=true -S < %s | FileCheck %s
1+
; RUN: opt -passes=consthoist -mtriple=x86_64-unknown-linux-gnu -consthoist-with-block-frequency=true -S < %s | FileCheck %s
22

33
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
44

llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llc < %s | FileCheck %s
22
; RUN: llc -debug-only=stackmaps < %s 2>&1 | FileCheck --check-prefix=STACKMAPS %s
3-
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -debugify < %s
3+
; RUN: opt -disable-output -passes=debugify < %s
44
; REQUIRES: asserts
55

66
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

llvm/test/CodeGen/X86/frame-order.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print < %s | FileCheck %s
2-
; RUN: opt -temporarily-allow-old-pass-syntax -strip -S < %s | llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print | FileCheck %s
2+
; RUN: opt -passes=strip -S < %s | llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print | FileCheck %s
33

44
; This test checks if the code is generated correctly with and without debug info.
55

llvm/test/CodeGen/X86/loadStore_vectorizer.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax -mtriple x86_64-- -load-store-vectorizer < %s -S | FileCheck %s
1+
; RUN: opt -mtriple x86_64-- -passes=load-store-vectorizer < %s -S | FileCheck %s
22

33
%struct_render_pipeline_state = type opaque
44

llvm/test/CodeGen/X86/masked_gather_scatter.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512vl -mattr=+avx512dq < %s | FileCheck %s --check-prefix=ALL --check-prefix=SKX --check-prefix=SKX_SMALL
55
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512vl -mattr=+avx512dq -code-model=large < %s | FileCheck %s --check-prefix=ALL --check-prefix=SKX --check-prefix=SKX_LARGE
66
; RUN: llc -mtriple=i386-unknown-linux-gnu -mattr=+avx512vl -mattr=+avx512dq < %s | FileCheck %s --check-prefix=ALL --check-prefix=SKX_32
7-
; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=x86_64-apple-darwin -scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
8-
; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=x86_64-apple-darwin -passes=scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
7+
; RUN: opt -mtriple=x86_64-apple-darwin -passes=scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
8+
; RUN: opt -mtriple=x86_64-apple-darwin -passes=scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
99
; RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -mcpu=skx < %s -o /dev/null
1010

1111
@glob_array = internal unnamed_addr constant [16 x i32] [i32 1, i32 1, i32 2, i32 3, i32 5, i32 8, i32 13, i32 21, i32 34, i32 55, i32 89, i32 144, i32 233, i32 377, i32 610, i32 987], align 16

llvm/test/CodeGen/X86/no-plt-libcalls.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; Check if "RtLibUseGOT" works correctly when lib calls are simplified.
3-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -instcombine -S | FileCheck %s
3+
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
44

55
@percent_s = constant [4 x i8] c"%s\0A\00"
66
@hello_world = constant [13 x i8] c"hello world\0A\00"

llvm/test/CodeGen/X86/pointer-vector.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
3-
; RUN: opt -temporarily-allow-old-pass-syntax -instsimplify -disable-output < %s
3+
; RUN: opt -passes=instsimplify -disable-output < %s
44

55
define <8 x ptr> @SHUFF0(<4 x ptr> %ptrv) nounwind {
66
; CHECK-LABEL: SHUFF0:

llvm/test/CodeGen/X86/pr38762.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
1+
; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
22

33
; Note: This patch is a complement to pr38763.
44
;

llvm/test/CodeGen/X86/pr38763.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
1+
; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
22

33
; When SimplifyCFG changes the PHI node into a select instruction, the debug
44
; information becomes ambiguous. It causes the debugger to display wrong

llvm/test/CodeGen/X86/pr39243.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
1+
; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
22

33
; Note: This patch fixes the regression introduced by pr38762.
44
;

llvm/test/CodeGen/X86/tls-loads-control2.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt -temporarily-allow-old-pass-syntax -S -mtriple=x86_64-unknown-unknown -tlshoist --relocation-model=pic --tls-load-hoist=true -o - %s | FileCheck %s --check-prefix=HOIST0
2-
; RUN: opt -temporarily-allow-old-pass-syntax -S -mtriple=x86_64-unknown-unknown -tlshoist --relocation-model=pic -o - %s | FileCheck %s --check-prefix=HOIST2
1+
; RUN: opt -S -mtriple=x86_64-unknown-unknown -passes=tlshoist --relocation-model=pic --tls-load-hoist=true -o - %s | FileCheck %s --check-prefix=HOIST0
2+
; RUN: opt -S -mtriple=x86_64-unknown-unknown -passes=tlshoist --relocation-model=pic -o - %s | FileCheck %s --check-prefix=HOIST2
33

44
$_ZTW5thl_x = comdat any
55

llvm/test/CodeGen/X86/vector-gep.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7-avx | FileCheck %s
3-
; RUN: opt -temporarily-allow-old-pass-syntax -instsimplify -disable-output < %s
3+
; RUN: opt -passes=instsimplify -disable-output < %s
44

55
define <4 x ptr> @AGEP0(ptr %ptr) nounwind {
66
; CHECK-LABEL: AGEP0:

0 commit comments

Comments
 (0)