From: Roman Lebedev Date: Thu, 8 Dec 2022 21:54:41 +0000 (+0300) Subject: [NFC] Port codegen X86 tests that invoke opt to `-passes=` syntax X-Git-Tag: upstream/17.0.6~24595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cfd815c14f378c50018f6967c027b758c3996a6;p=platform%2Fupstream%2Fllvm.git [NFC] Port codegen X86 tests that invoke opt to `-passes=` syntax --- diff --git a/llvm/test/CodeGen/X86/GC/deadargelim.ll b/llvm/test/CodeGen/X86/GC/deadargelim.ll index 115e156..75908a2 100644 --- a/llvm/test/CodeGen/X86/GC/deadargelim.ll +++ b/llvm/test/CodeGen/X86/GC/deadargelim.ll @@ -1,4 +1,4 @@ -; RUN: opt -temporarily-allow-old-pass-syntax < %s -deadargelim +; RUN: opt < %s -passes=deadargelim declare void @llvm.gcroot(ptr, ptr) diff --git a/llvm/test/CodeGen/X86/GC/inline.ll b/llvm/test/CodeGen/X86/GC/inline.ll index b0d0a69..3a45f98 100644 --- a/llvm/test/CodeGen/X86/GC/inline.ll +++ b/llvm/test/CodeGen/X86/GC/inline.ll @@ -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] } diff --git a/llvm/test/CodeGen/X86/GC/inline2.ll b/llvm/test/CodeGen/X86/GC/inline2.ll index 17b4395..32256dd8 100644 --- a/llvm/test/CodeGen/X86/GC/inline2.ll +++ b/llvm/test/CodeGen/X86/GC/inline2.ll @@ -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] } diff --git a/llvm/test/CodeGen/X86/block-placement.ll b/llvm/test/CodeGen/X86/block-placement.ll index 51148e6..a522f0e 100644 --- a/llvm/test/CodeGen/X86/block-placement.ll +++ b/llvm/test/CodeGen/X86/block-placement.ll @@ -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) diff --git a/llvm/test/CodeGen/X86/constant-hoisting-bfi.ll b/llvm/test/CodeGen/X86/constant-hoisting-bfi.ll index a41092f..fcf12a0 100644 --- a/llvm/test/CodeGen/X86/constant-hoisting-bfi.ll +++ b/llvm/test/CodeGen/X86/constant-hoisting-bfi.ll @@ -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" diff --git a/llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll b/llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll index 521aad6..a6e75b6 100644 --- a/llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll +++ b/llvm/test/CodeGen/X86/deopt-intrinsic-cconv.ll @@ -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" diff --git a/llvm/test/CodeGen/X86/frame-order.ll b/llvm/test/CodeGen/X86/frame-order.ll index 791ce15..2857a73 100644 --- a/llvm/test/CodeGen/X86/frame-order.ll +++ b/llvm/test/CodeGen/X86/frame-order.ll @@ -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. diff --git a/llvm/test/CodeGen/X86/loadStore_vectorizer.ll b/llvm/test/CodeGen/X86/loadStore_vectorizer.ll index 1e8af11..7a75479 100644 --- a/llvm/test/CodeGen/X86/loadStore_vectorizer.ll +++ b/llvm/test/CodeGen/X86/loadStore_vectorizer.ll @@ -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 diff --git a/llvm/test/CodeGen/X86/masked_gather_scatter.ll b/llvm/test/CodeGen/X86/masked_gather_scatter.ll index 3769086..bfc9814 100644 --- a/llvm/test/CodeGen/X86/masked_gather_scatter.ll +++ b/llvm/test/CodeGen/X86/masked_gather_scatter.ll @@ -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 diff --git a/llvm/test/CodeGen/X86/no-plt-libcalls.ll b/llvm/test/CodeGen/X86/no-plt-libcalls.ll index b0642ce..0e6fed9 100644 --- a/llvm/test/CodeGen/X86/no-plt-libcalls.ll +++ b/llvm/test/CodeGen/X86/no-plt-libcalls.ll @@ -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" diff --git a/llvm/test/CodeGen/X86/pointer-vector.ll b/llvm/test/CodeGen/X86/pointer-vector.ll index d2ddc53..aa9b977 100644 --- a/llvm/test/CodeGen/X86/pointer-vector.ll +++ b/llvm/test/CodeGen/X86/pointer-vector.ll @@ -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: diff --git a/llvm/test/CodeGen/X86/pr38762.ll b/llvm/test/CodeGen/X86/pr38762.ll index 813c85d5..ffe586a 100644 --- a/llvm/test/CodeGen/X86/pr38762.ll +++ b/llvm/test/CodeGen/X86/pr38762.ll @@ -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. ; diff --git a/llvm/test/CodeGen/X86/pr38763.ll b/llvm/test/CodeGen/X86/pr38763.ll index a801b8c..41b0344 100644 --- a/llvm/test/CodeGen/X86/pr38763.ll +++ b/llvm/test/CodeGen/X86/pr38763.ll @@ -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 diff --git a/llvm/test/CodeGen/X86/pr39243.ll b/llvm/test/CodeGen/X86/pr39243.ll index 0559cf2..4137fb6 100644 --- a/llvm/test/CodeGen/X86/pr39243.ll +++ b/llvm/test/CodeGen/X86/pr39243.ll @@ -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. ; diff --git a/llvm/test/CodeGen/X86/tls-loads-control2.ll b/llvm/test/CodeGen/X86/tls-loads-control2.ll index 17cd940..877dab2 100644 --- a/llvm/test/CodeGen/X86/tls-loads-control2.ll +++ b/llvm/test/CodeGen/X86/tls-loads-control2.ll @@ -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 diff --git a/llvm/test/CodeGen/X86/vector-gep.ll b/llvm/test/CodeGen/X86/vector-gep.ll index f7141c7..b4cffcd 100644 --- a/llvm/test/CodeGen/X86/vector-gep.ll +++ b/llvm/test/CodeGen/X86/vector-gep.ll @@ -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: