From 4dd6a3f61101d5cbe892aac3608e5ed4389ee6ef Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Fri, 9 Dec 2022 02:04:06 +0300 Subject: [PATCH] [NFC] Port last few Other tests to `-passes=` syntax --- llvm/test/Other/opt-On.ll | 2 +- llvm/test/Other/scalable-vector-array.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Other/opt-On.ll b/llvm/test/Other/opt-On.ll index ffd785a..49f2d9d 100644 --- a/llvm/test/Other/opt-On.ll +++ b/llvm/test/Other/opt-On.ll @@ -1,6 +1,6 @@ ; RUN: not opt -O1 -O2 < %s 2>&1 | FileCheck %s --check-prefix=MULTIPLE ; RUN: not opt -O1 -passes='no-op-module' < %s 2>&1 | FileCheck %s --check-prefix=BOTH -; RUN: not opt -O1 --gvn < %s 2>&1 | FileCheck %s --check-prefix=BOTH +; RUN: not opt -O1 -passes=gvn < %s 2>&1 | FileCheck %s --check-prefix=BOTH ; RUN: opt -O0 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT ; RUN: opt -O1 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT ; RUN: opt -O2 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT diff --git a/llvm/test/Other/scalable-vector-array.ll b/llvm/test/Other/scalable-vector-array.ll index b5c7e90..4119bb6 100644 --- a/llvm/test/Other/scalable-vector-array.ll +++ b/llvm/test/Other/scalable-vector-array.ll @@ -1,4 +1,4 @@ -; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s +; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s ;; Arrays cannot contain scalable vectors; make sure we detect them even ;; when nested inside other aggregates. -- 2.7.4