[NFC] Port codegen X86 tests that invoke opt to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 21:54:41 +0000 (00:54 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 22:04:47 +0000 (01:04 +0300)
16 files changed:
llvm/test/CodeGen/X86/GC/deadargelim.ll
llvm/test/CodeGen/X86/GC/inline.ll
llvm/test/CodeGen/X86/GC/inline2.ll
llvm/test/CodeGen/X86/block-placement.ll
llvm/test/CodeGen/X86/constant-hoisting-bfi.ll
llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll
llvm/test/CodeGen/X86/frame-order.ll
llvm/test/CodeGen/X86/loadStore_vectorizer.ll
llvm/test/CodeGen/X86/masked_gather_scatter.ll
llvm/test/CodeGen/X86/no-plt-libcalls.ll
llvm/test/CodeGen/X86/pointer-vector.ll
llvm/test/CodeGen/X86/pr38762.ll
llvm/test/CodeGen/X86/pr38763.ll
llvm/test/CodeGen/X86/pr39243.ll
llvm/test/CodeGen/X86/tls-loads-control2.ll
llvm/test/CodeGen/X86/vector-gep.ll

index 115e15634000c4395379f2eecaeba2a63d037ca2..75908a2df4906a416cef11805ca2781a32e30e30 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -deadargelim
+; RUN: opt < %s -passes=deadargelim
 
 declare void @llvm.gcroot(ptr, ptr)
 
index b0d0a69a6ef4374787ebc835c2cffc2e2a58b488..3a45f983b9f58c92bad27bddb59734118bd0bc1b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep example
+; RUN: opt < %s -passes='cgscc(inline)' -S | grep example
 
        %IntArray = type { i32, [0 x ptr] }
 
index 17b4395472fd2bdc37f944cc185b0b6a7c8c3d10..32256dd80b64990d71f57a7aeebf633a6ea6de03 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep sample
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -inline -S | grep example
+; RUN: opt < %s -passes='cgscc(inline)' -S | grep sample
+; RUN: opt < %s -passes='cgscc(inline)' -S | grep example
 
        %IntArray = type { i32, [0 x ptr] }
 
index 51148e6efb68cf1f429cc5541ef1340fc51aeaff..a522f0e9828a05485276d7c4b1b15a24e12fcb6a 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc -mtriple=i686-linux -pre-RA-sched=source < %s | FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -debugify < %s
+; RUN: opt -disable-output -passes=debugify < %s
 
 declare void @error(i32 %i, i32 %a, i32 %b)
 
index a41092f8339201210a99872bbc090f61e0e36934..fcf12a0aefc1434f43f686e541d310b4a71f07b4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -consthoist -mtriple=x86_64-unknown-linux-gnu -consthoist-with-block-frequency=true -S < %s | FileCheck %s
+; RUN: opt -passes=consthoist -mtriple=x86_64-unknown-linux-gnu -consthoist-with-block-frequency=true -S < %s | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 
index 521aad627c810fd3aa219df3a8537a479851cc75..a6e75b667798d974f79ceeb7549f755b6a1b8d31 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s | FileCheck %s
 ; RUN: llc -debug-only=stackmaps < %s 2>&1 | FileCheck --check-prefix=STACKMAPS %s
-; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -debugify < %s
+; RUN: opt -disable-output -passes=debugify < %s
 ; REQUIRES: asserts
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
index 791ce15257e679e72d9e853747144d3d442d6e9c..2857a738e8efcc6064598b7a44c3220bc3376742 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print < %s | FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax -strip -S < %s | llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print | FileCheck %s
+; RUN: opt -passes=strip -S < %s | llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print | FileCheck %s
 
 ; This test checks if the code is generated correctly with and without debug info.
 
index 1e8af1117ebdf2359e8e938f2fb6134e7a4bc502..7a75479efc2e753a56f10e6b9108881b0b3ab199 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -mtriple x86_64-- -load-store-vectorizer < %s -S | FileCheck %s
+; RUN: opt -mtriple x86_64-- -passes=load-store-vectorizer < %s -S | FileCheck %s
 
 %struct_render_pipeline_state = type opaque
 
index 37690864e75ba32ea1e63afaba31f70415af4ec2..bfc98143cc909ee89fb295da4b5479dd7c86a604 100644 (file)
@@ -4,8 +4,8 @@
 ; 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
 ; 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
 ; RUN: llc -mtriple=i386-unknown-linux-gnu  -mattr=+avx512vl -mattr=+avx512dq < %s | FileCheck %s --check-prefix=ALL --check-prefix=SKX_32
-; 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
-; 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
+; RUN: opt -mtriple=x86_64-apple-darwin -passes=scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
+; RUN: opt -mtriple=x86_64-apple-darwin -passes=scalarize-masked-mem-intrin -mcpu=corei7-avx -S < %s | FileCheck %s -check-prefix=SCALAR
 ; RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -mcpu=skx < %s -o /dev/null
 
 @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
index b0642ce025a511e8a189bd882da07a169b864db0..0e6fed91e19f66b827a6a85f4ced6629fbe2428d 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; Check if "RtLibUseGOT" works correctly when lib calls are simplified.
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -instcombine -S | FileCheck %s
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
 
 @percent_s = constant [4 x i8] c"%s\0A\00"
 @hello_world = constant [13 x i8] c"hello world\0A\00"
index d2ddc5354478aa4731e0451f121ddf9887aade70..aa9b977482fc1b838a0e32dfd24a68caa64f968d 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax -instsimplify -disable-output < %s
+; RUN: opt -passes=instsimplify -disable-output < %s
 
 define <8 x ptr> @SHUFF0(<4 x ptr> %ptrv) nounwind {
 ; CHECK-LABEL: SHUFF0:
index 813c85d520dfc082bf80c588e683e7e6a434b008..ffe586a1e31c77d598f7c0b5f01ca70b1b2385b7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
+; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
 
 ; Note: This patch is a complement to pr38763.
 ;
index a801b8cc7b06465e73bbc51aed38efb52237cad8..41b0344b8a92ae6fdaead388862d3dbd11c8c443 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
+; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
 
 ; When SimplifyCFG changes the PHI node into a select instruction, the debug
 ; information becomes ambiguous. It causes the debugger to display wrong
index 0559cf2cca04fce23a6c576136cd997cf13884ac..4137fb63ece35c2ca978fd1a40d4d785df1babf7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -simplifycfg | FileCheck %s
+; RUN: opt < %s -S -passes=simplifycfg | FileCheck %s
 
 ; Note: This patch fixes the regression introduced by pr38762.
 ;
index 17cd940fdb05b1ea1cc97fa3e10a93a42fcf52b6..877dab2b153878993b6cfc83d2a7b501ccedd50d 100644 (file)
@@ -1,5 +1,5 @@
-; 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
-; RUN: opt -temporarily-allow-old-pass-syntax -S -mtriple=x86_64-unknown-unknown -tlshoist --relocation-model=pic -o - %s | FileCheck %s --check-prefix=HOIST2
+; RUN: opt -S -mtriple=x86_64-unknown-unknown -passes=tlshoist --relocation-model=pic --tls-load-hoist=true -o - %s | FileCheck %s --check-prefix=HOIST0
+; RUN: opt -S -mtriple=x86_64-unknown-unknown -passes=tlshoist --relocation-model=pic -o - %s | FileCheck %s --check-prefix=HOIST2
 
 $_ZTW5thl_x = comdat any
 
index f7141c7b35180787e585c9da0d5a95df1a026ba8..b4cffcd171b3328a66982591f38b93a1b6b31271 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7-avx | FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax -instsimplify -disable-output < %s
+; RUN: opt -passes=instsimplify -disable-output < %s
 
 define <4 x ptr> @AGEP0(ptr %ptr) nounwind {
 ; CHECK-LABEL: AGEP0: